Page 1 of 1

php die

Posted: Sun Nov 01, 2015 7:18 am
by Vegan
I was wondering, how to deal with jerks who disable javascript to try to block ads on my sites

so my thinking is to use the HTML tags

Code: Select all

<noscript>
<p>This site site requires JavaScript to function properly</p>
<?php
die();
?>
</noscript>
and then refuse to display the page

do search engines care, if so, any suggestions to cope with this threat

Re: php die

Posted: Sun Nov 01, 2015 8:17 am
by Celauran
Honestly, I'd just let them through. It's going to be a small percentage who do that, and the time you spend trying to "beat" them will likely be worth more than whatever revenue you're potentially missing out on.

Re: php die

Posted: Sun Nov 01, 2015 10:52 am
by Vegan
I use a lot of scripts on my site, all the pages are assembled from other parts