php - Make specific url response 404 error instead of 200 for spam bots -
How to do a 404 error instead of spam bots instead of my site's unique url (index.php? Act = add) 200 Try accessing it?
I'm not a PHP programmer, so maybe it can be defective in .htaccess file?
++++
Thank you for the answer but it did not help (I need something like that rule in the .htaccess file:
& lt; files "index.php" & gt; reject the command; Allow all to reject & lt; / files & gt; but "index. To use php? Act = add, instead of index.php.
+++ Thanks for doing it now.
using php (file index.php)
if ($ _GET ['act'] == 'add') {if ( Spambot / useragent / ipaddress / to check cookies) {header ("HTTP / 1.0 404 not found"); exit;} else {// // // Your code for 'real' users}}
Comments
Post a Comment