How To Detect Adblock?

How does AdBlock Plus (ABP) detect an ad in a website like FB?

  • Answer:

    Like Robert mentioned, ads are usually served from domains belonging to advertising networks. These ad networks usually have dedicated domains to serve ads eg Google AdSense may serve its ads from the domain ads.googleads.com Facebook from ads.facebook.com and so on. What AdBlock does is, it blocks all GET/POST requests going out to these known ad serving domains/platforms thereby essentially preventing the ad from loading. By default Adblock uses a known list of such domains(https://adblockplus.org/en/subscriptions) which is updated frequently, and you can even block other domains by specifically adding it to a custom filter: https://adblockplus.org/en/filters.

Sathiya Sundaram at Quora Visit the source

Was this solution helpful to you?

Other answers

Ad's are served from particular URL which are usually not hosted on the same website. Ads have industry defined dimensions. By having a black list of domains from which ads are served and also black list of ad dimensions, it is possible to detect ads by partially comparing the image URLs and dimensions defined in the page source to this list. But I'm not sure if it is done that way.

Robert Nediyakalaparambil

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.