PHP Classes

Lablnet Detect Ad Blockers PHP Library: Detect and block browsers using ad blockers

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-06-16 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 48 This week: 1All time: 10,549 This week: 16Up
Version License PHP version Categories
lablnetadsdetector 1.0MIT/X Consortium ...5PHP 5, Content management, Business
Description 

Author

This package is OSSN (PHP Open Source Social Network) component (that can detect and block browsers using ad blockers.

It provides a PHP script that outputs a JavaScript library as part of the current page output to detect if the current browser uses an ad blocker extension.

The JavaScript library may output a message asking users to turn off the browser extension when ad blocking is detected.

Innovation Award
PHP Programming Innovation award nominee
June 2023
Number 2
Many sites place ads on their pages to earn more revenue while providing free access to site resources.

Some users who dislike seeing ads use ad-blocking extensions in their browsers to avoid showing ads.

When ads are blocked, the site owners that depend on advertising revenue to keep the sites running pay for all its costs and may be unable to control the sites open.

This package uses a JavaScript library to show messages to users that block ads to let them know that the advertising revenue is necessary to give them access to the site resources.

This way, conscient users may unblock ads for the sites that show these messages.

Manuel Lemos
Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq <contact>
Classes: 52 packages by
Country: Pakistan Pakistan
Innovation award
Innovation award
Nominee: 6x

Details
  • Detect AdBlockers and show message to disable it
  Files folder image Files  
File Role Description
Files folder imageplugins (1 directory)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file ossn_com.php Example Example script
Accessible without login Plain text file ossn_com.xml Data Auxiliary data
Accessible without login Plain text file Readme.md Doc. Documentation

  Files folder image Files  /  plugins  
File Role Description
Files folder imagedefault (1 directory)

  Files folder image Files  /  plugins  /  default  
File Role Description
Files folder imagepage (1 file)

  Files folder image Files  /  plugins  /  default  /  page  
File Role Description
  Accessible without login Plain text file cdn.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:48
This week:1
All time:10,549
This week:16Up