URL blocking and wildcards

I though to try and use url blocking to disable those irritating INTELLITXT ads - the ones that make a double underlined link of various keywords in the text.

I tried to block *intellitxt.com, but that failed to have any effect.
I changed it to .intellitxt.com/ and that seems to be working.

My question is: What are the rules for wildcards? Does each * represent any number of characters up to the next non-* character, or is the “.” character excluded somehow?

Why do I need the trailing /*?

This “?” usually means any character of lenght 1 letter, though cannot be used for URLs.
“*” means anything of any lenght.

So if i use:

http://.intellitxt.com/

this means URL can be:

http://srv1.intellitxt.com/*
http://ads.intellitxt.com/*
http://click.intellitxt.com/*

and will still get blocked.

The * in the end means it can be anything behind it:

http://ads.intellitxt.com/banners/txt/intellitxt.js

This way it will block anything thats on intellitxt.com domain regardless of how many subdirectories are used behind and whats the final filename in the end (if any).

Using * is pretty simple and useful.
You can even use /ads/ or /banners/. This means any URL that contains string /ads/ or /banners/ will get blocked (no matter where this string is placed in URL address. If you want to block just lets say “.ru” domains you use *.ru.
Or if you want to block all EXE/ZIP filetypes you use *.exe or *.zip
So last string will be matched exactly .zip, and * replaces anything of any lenght before this.

Hope it helps :slight_smile:

RejZoR,

Thanks for a very good explanation.

In my opinion this feature of Avast should be used much more. :slight_smile:

HL

Though i prefer Firefox Adblock extension to block the ads and similar garbage.
Much faster and more flexible. Though avast! does that job aswel :slight_smile:

I am on Opera and IE. Opera also has such a feature.
But when switching browsers, I have to rely on Hostfile.

What I meant was that Avast blocking feature is a very powerful feature,
and not much promoted IMO.

Your post was a good promotion. :slight_smile:
HL

RejZor said:
‘‘You can even use /ads/ or /banners/. This means any URL that contains string /ads/ or /banners/ will get blocked (no matter where this string is placed in URL address.’’

If I understand that adding those strings to URL blocking would stop most banners and ads loading, without actually hindering the opening of the main site page itself, that’ll be great! Sorry if I implied too much.

Yeah, something like that. Though avast! was not designed exactly for this hehe

Oops, better hide the posts from Igor and Vlk.

They are aware of it ever since the Web Shield release. It’s not really a new thing :stuck_out_tongue:

Why should we hide such a powerful weapon against blocking unwanted stuff. ;D

Use of wildcards as illustrated by RejZoR makes this a very powerful feature of Avast.

Does it really matter what it was really meant for? :wink:

I haven’t calculated on it, but a large part of a Hostfile can be replaced by a small number of entries in Avast’ blocklist, I assume.

It has been discussed on the fora, but my impression is that it is not widely used.
A “semisecret” feature of Avast. :wink:

Host file is useful only for limited range of stuff. Wildcards are much more flexible.

Just what I tried to say. That was my whole point.

EDIT: The downside of not having English as your first language. ;D

Regarding the blocking - I don’t think it’s any secret (at least not from our side ;)), it’s just that it may not be exactly the best means, as Rejzor said.
I am not very familiar with today’s ad-blockers, but I’d say simply blocking the ads might cause unwanted corruption to the HTML page layout (because the browser gets “confused”). It would probably be better to replace the banners with some small/invisible (empty) images, and things like that - which Web Shield doesn’t do.

Igor,

Just an example from this page:
I put cafepress in blocklist and the advert at the top of the page is replaced with a square without content after reloading.

No layout corruption in this case anyway. I can mouse-over and see the address, but clicking at the square gives me Access Denied from Avast.

HL

I will remove it from my blocklist :wink:

Well that empty square instead of AD is actually the thing that me and igor mentioned.
It was simply not designed for this. If you intend to block banners and you happen to use Firefox, then use AdBlock extension for it. It has a nice option to collapse HTML structure and also properly removes those banners.
This way you get nice pages where you mostly won’t even know it had any ads.
Unless the page is designed badly (like CNET sites) which often have stuopid ads somewhere in the middle of text, blocking them will result in gray square instead of ad.
Still better than some flashing psychotic ad though ;D

I just wanted to give you honour for your explanation of the Blocklist-feature
of Avast. :slight_smile:

For many users I still think that the Blocklist of Avast may be very useful. :wink:

If they KNOW about this feature, they can at least TRY it. :slight_smile:

HL

Well latest Opera 9 will also have AdBlocking similar to the one in Firefox.
Not so flexible as i’ve managed to test it so far but it does the job.

For sure, and I have set up many. But sometimes the effects are unexpected, as the wildcard will overlap with some other URL that you do want to see - and then, certainly when I’m tired or whatever, it can be hard to pick out which URL block is in the way!! I would encourage people to use this, but to be careful too.