does a basic rule block the domain part of a url

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
andynuss
Posts: 3
Joined: Wed Apr 15, 2015 2:44 am

does a basic rule block the domain part of a url

Post by andynuss »

Hi,

Newbie question on a basic rule.

Lets say one has a rule such as:

ad

Will this block the url:

http://adversity.org/123.gif

or does a basic rule apply only to the pathinfo and query string of a url?

Andy
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: does a basic rule block the domain part of a url

Post by mapx »

add this filter

Code: Select all

nn
and see the effect on cnn.com
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: does a basic rule block the domain part of a url

Post by lewisje »

The answer is that it applies to the whole URL except the fragment identifier (because fragment identifiers aren't part of HTTP requests), and if you don't explicitly put special characters at the start and end, it acts as if you had put asterisks there (if your pattern starts and ends with a slash and you don't want it to be treated like a regex, put a star after the last slash).
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Locked