TheFilmGod Posted March 22, 2007 Share Posted March 22, 2007 I have google adsense ads that run on my ads. If a user doesn't have javascript I can easily do the <no script> tag. But what if they have a ad blocker on their browser. How can I tell the browser to replace the ads with something else? It looks messed up to see a black background when the ads are missing. Any help is greatly appreciated. Quote Link to comment Share on other sites More sharing options...
fenway Posted March 23, 2007 Share Posted March 23, 2007 Depends how the ads are being blocked... I guess you could test load an image from that domain somewhere, and decide based on that... Quote Link to comment Share on other sites More sharing options...
BlackenedSky Posted March 28, 2007 Share Posted March 28, 2007 as above. load image from that url, check if img.src is null or whatever. if it is, change the add. add blockers work based on urls. also, we usually have adblockers for a reason - to block ads. why try and annoy those users who have decided they don't want them being shown? sure way to annoy visitors. plus they can easily add the url of any adds you display which aren't already blocked. short of setting up TinyUrls (tinyurl.com), you can't really mask the ads url. I'm not even sure if tinyurl would work or not, but it might since it masks the domain another idea would be to link all ad frames to a single php page, which echos the html from a random ad url. this would mean any ad blockers wouldn't detect the url, as it is done server side Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.