How can I block the ads of only one domain?

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

How can I block the ads of only one domain?

Post by henx125 »

I'm trying to use the filter (maybe I am just not understanding how to use it) to block a specific domain (deviantart.com, in this case) from showing ads as many of them are malicious, but I cant seem to get the filter to do anything. I have the "disable everywhere" option checked on because I don't personally mind ads on other sites, but I can't tell if maybe that is overriding the filter or if the filter is only for deciding which sites' ads are not blocked. Any help on this would be appreciated.
User avatar
mapx
Posts: 21940
Joined: Thu Jan 06, 2011 2:01 pm

Re: How can I block the ads of only one domain?

Post by mapx »

uncheck "disable everywhere" (because this option if checked disables completely ABP for all domains)

keep easylist enabled

use this custom filter

Code: Select all

@@*$document,domain=~deviantart.com
henx125
Posts: 1
Joined: Sat Jul 26, 2014 10:42 am

Re: How can I block the ads of only one domain?

Post by henx125 »

Awesome, that was exactly what I needed. Thanks so much for the help.
NetVicious
Posts: 2
Joined: Mon Mar 14, 2016 5:42 pm

Re: How can I block the ads of only one domain?

Post by NetVicious »

Hi mapx, it's this available on the last versions of AdBlockPlus ? (in my case v2.7.2 in Firefox)

I'm trying to use a filter like this:

Code: Select all

||domain_to_block.com^,domain=~www.onlyhere.com
And it won't works.

As I read, this filter should block all the content of domain_to_block.com and its subdomains only when I browsing http://www.onlyhere.com webpages.

I don't found any documentation of this kind of advanced filters.

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

Re: How can I block the ads of only one domain?

Post by mapx »

this topic has nothing in common with your goal (the filter I provided above will block ONLY the ads on the domain deviantart and all other sites will still show their ads)
if you want "block all the content of domain_to_block.com and its subdomains only when I browsing http://www.onlyhere.com webpages."

use

Code: Select all

||domain_to_block.com^$domain=onlyhere.com
about filters:
en/filters
NetVicious
Posts: 2
Joined: Mon Mar 14, 2016 5:42 pm

Re: How can I block the ads of only one domain?

Post by NetVicious »

Thx for the info and for the url of the documentation. :)
Locked