Link to home
Start Free TrialLog in
Avatar of U_S_A
U_S_A

asked on

Need code to not play well with Ghostery

I'm looking for a simple web code (some simple script) which does not play well with Ghostery

Basically I'm looking for something to add to my website which will make a viewer of my website, who is using Ghostery, to not be able to fully use or see our page when Ghostery breaks our page.  The hope is to get them to disable Ghostery when viewing our website.
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

What is it breaking on your site?
Avatar of U_S_A
U_S_A

ASKER

It's not breaking anything.  I'm looking to add code to my website that will cause my website to be broken, when a viewer is using Ghostery.  I'm attempting to stop my users from using Ghostery to block ads.  Can you give me something that I can use?
No, it's not something I've tried to do.  Never heard of Ghostery until your question.  How can you even tell that they are using it?  You have to be able to detect it to do something to defeat it.
Try this starting point https://wordpress.org/plugins/adblock-notify-by-bweb/.

This class of plugins puts up a message saying, you must disable your Ad Blocker to use this site. People will then either leave or disable their Ad Blocker.

If you're using WordPress for your site, just use this plugin or similar.

If you're using custom code, then setup a dev WordPress site. Try many of this type of plugin.

And when you find a system that works well for you, then look at the libraries used in the plugin + find them + run them yourself.

Most of these plugins use a few common libraries + techniques. All these are public domain, so easy to use whatever your situation.

You can also search https://github.com for additional resources to accomplish your end.

All this said, there are some coding approaches you can use that Ad Blockers don't block, depending on type of Ad Units you're using.

Post your site URL + likely others may provide additional approaches for you to consider.
Avatar of U_S_A

ASKER

@David Favor, I already have a detection script for the usual ad blocker.  I'm specifically looking to detect Ghostery.   I'm hoping to find some script which will break when Ghostery is running on my website.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.