block elements without subdir images ?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Johns

block elements without subdir images ?

Post by Johns »

Hello all,

i have one url www.example.com/img/pics/some.picture
i want to block all elements (pictures and ojects) from directory img but allow elements from pics.

Some thing like:
www.example.com/img/ <-- block
www.example.com/img/pics/ <-- allow

do any body can help?
i trying with filter:
http://www.example.com/img/*(?!pics/)
but does not work :(
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Post by Adblock Plus Fan »

I'm not sure but can combining whitelist with blacklist work here?
Wladimir Palant

Post by Wladimir Palant »

Yes, combine blacklisting with whitelisting:

Code: Select all

|http://www.example.com/img/
@@|http://www.example.com/img/pics/
Otherwise you will have to resort to regexps which isn't justified in this case IMO.
Johns

thans

Post by Johns »

Wladimir Palant wrote:Yes, combine blacklisting with whitelisting:

Code: Select all

|http://www.example.com/img/
@@|http://www.example.com/img/pics/
Otherwise you will have to resort to regexps which isn't justified in this case IMO.
this is work, thanks.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Re: block elements without subdir images ?

Post by rick752 »

Johns wrote: Some thing like:
www.example.com/img/ <-- block
www.example.com/img/pics/ <-- allow
Funny, you actually wrote the solution to you own question in your OP :D
Johns

:)

Post by Johns »

Yes, but before i write to forum, i tried in this way without any success. :(
Locked