This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

wwwFap AB Restrict


Loads a file called banner_ads_300_250.js, a name routinely blocked by ad-blockers. If the file load is blocked it restricts access with overlay and displays a notice to turn off ad-blocker. Website access is restricted until ad-blocker is disabled and page reloaded. Extremely light weight, just a few lines of code.

If you are using Google Analytics, here is code to track your website’s ad blocking events to add to your Google Analytics tag. Place inside the <script></script> tags:
gtag(‘event’, ‘blocking_ads’, {
‘event_label’: ‘Blocking Ads’,
‘event_category’: ‘blocking_ads’,
‘non_interaction’: true


  • Notice overlay and notice displayed once ad blocker is detected.


  • Upload the plugin to the /wp-content/plugins/ directory
  • Activate the plugin through the ‘Plugins’ menu in WordPress

Once you have completed these steps you’re done. Now turn on your AdBlock and visit your site to test the plugin!


Are there any settings that I need to configure?

Nope. Just activate the plugin. That’s all.

Does the banner_ads_300_250.js file contain any ads?

No it does not. Ad blockers routinely block files that are named ads, banners, common ad sizes, etc. The file is used as bait. As soon as an ad-blocker blocks this file from loading we detect it’s presence.


There are no reviews for this plugin.

Contributors & Developers

“wwwFap AB Restrict” is open source software. The following people have contributed to this plugin.


Translate “wwwFap AB Restrict” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



* Initial release