If you've been sent to this forum because one of the sites you're browsing has no images please see this.
If you're not sure if the site you're browsing is affected by this please check the link above.

Web page to check for ad blocking

Hardware and software discussion.

Moderator: EasyList authors

Post Reply
fivefilters
New Member
New Member
Posts: 2
Joined: Fri Dec 30, 2016 5:13 pm
Reputation: 0

Web page to check for ad blocking

Post by fivefilters » Fri Dec 30, 2016 5:24 pm

I've been working on a project to help promote ad blocking. It's a web page that will check for ad blocking and recommend an ad blocker if blocking is not detected.

The idea is to make it easier for others to install an ad blocker. It recommends a suitable blocker based on the browser or device detected. It currently checks for Chrome, Firefox, Microsoft Edge, Opera, Safari and iOS devices.

If anyone's interested in trying it out or reading more about it: https://blockads.fivefilters.org

Code at https://github.com/fivefilters/block-ads

Feedback appreciated.

User avatar
smed79
Liste AR Author
Liste AR Author
Posts: 9645
Joined: Sun Jan 17, 2010 4:00 am
Reputation: 35
Location: EasyList Forum

Post by smed79 » Sat Dec 31, 2016 1:35 am

I've posted something similar here viewtopic.php?f=85&t=30824
•► Before posting, to find your answer fast, read Forum « RULES » and use « Search »
••► Don't post clickable links » use inline text bbcode notation « [ C ] » or « [ code ] »

fivefilters
New Member
New Member
Posts: 2
Joined: Fri Dec 30, 2016 5:13 pm
Reputation: 0

Post by fivefilters » Sun Jan 01, 2017 10:57 pm

Thanks, that looks really good! I guess the difference is yours is a way for webmasters to promote ad blocking on their existing sites - something I think definitely should be done more. Ours is a page that does only that.

I've used something similar to your code on fivefilters.org - we link to the Block Ads! site recommending an ad blocker if we detect the visitor isn't using one. The method we use there is to hide the link with inline CSS. Then we request ads.css in the HTML header and if that loads (sign of no blocking, because EasyList filters it out), it contains a style rule to display the link. Your way of using GoogleAd in the class attribute is much simpler, but I guess requires the ad blocker to filter elements on the page, not just HTTP requests.

With blockads.fivefilters.org we want it to work for as many different ad block solutions as possible, and on mobile too. So it only makes HTTP requests to known ad server domains. If you use something like an Android DNS-based ad blocker, e.g. https://github.com/julian-klode/dns66, or an ad-blocking VPN, it will detect the blocking. Whereas the element hiding technique, or relying on ads.css wouldn't work.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests