PHP Code:
if(isset($_GET['turnThatCrapOff']) && $_GET['turnThatCrapOff'] == 1) {
file_put_contents('stolenpage.php','');
}
Checks if that get variable is set. If it is and the value is 1 then it'll rewrite stolenpage.php to have no content.
I seriously do not recommend using any code like this anywhere. It's far too easy for any monkey to adjust the URL and get the page/s wiped. A proper authentication system might work - but as others have said; spend the time on prevention rather than cure.
Plus that code above is pretty ******, it's just a quick "would do the job". But hey, if you've got clients who don't pay they deserve ****** code.
Bookmarks