Changes

Jump to: navigation, search

Denying Website Access to Ad Blocking Visitors

165 bytes added, 18:07, 3 May 2016
no edit summary
== Denying Access when Ad Blocking is Enabled ==
Access denial is best used in conjunction with the dialog request approach outlined in the chapter entitled Asking Visitors to Turn Off [http://www.ebookfrenzy.com/AdBlocking/index.html Displaying Ad BlockingBlocker Removal Requests - A Tutorial]. Instead of allowing the visitor to dismiss the dialog and continue accessing the site however, the code will be modified to detect whether the ad blocker has been disabled when the dialog is closed. Assuming the continued use of the Bootstrap Modal plugin to present the dialog, the plugin will be configured such that it calls a function when it is about to close. This function will force the web page to reload which, in turn, will cause the ad blocker detection code to be executed once again. If the ad blocker is still enabled, the dialog will appear. If, on the other hand, the user disabled the ad blocker the code to display the dialog will not execute and the visitor will gain unhindered access to the site content. Since the page reloaded after the ad blocker was disabled, all of the previously blocked ads will once again appear.
To add this functionality to the example created in the Asking Visitors to Turn Off Ad Blocking chapter, just two extra lines of code are required:
== Offer a Less Ad Intensive Experience ==
As with the ad blocker removal request strategy, consider offering the visitor a browsing experience containing less ads in return for disabling ad blocking while visiting your site. As outlined in the chapter entitled [http://www.ebookfrenzy.com/AdBlocking/index.html Controlling Ad Blocker Removal Request Frequency], this can be achieved using ad reinsertion (as outlined in [http://www.ebookfrenzy.com/AdBlocking/index.html Filling Blocked Ads with Ad Reinsertion]) combined with a cookie to allow the agreement to be honored when visitors return to the site in the future.
== Summary ==
If insufficient users disable ad blocking when asked to do so, another option is to deny access until the visitor complies. Although a valid approach that is gaining in popularity among web publishers, this strategy is not without some risks including alienating loyal visitors and denying access to corporate employees unable to comply with the request to disable ad blocking. As outlined in the next chapter, the success rate of such an approach can and should be monitored carefully.

Navigation menu