Author: M4DSh4k
Salamz Everyone ,
Again this is also a nice peace of Code in .htaccess ,
This code will avoid common bots from access your site ,
those bots which spam your board / forum sites.
in this code i have added some common bots , what we are doing is
we are disabling the useragents of bots ,
every bot have their own useragent , from which they crawl the site.
so this will block that by using again htaccess i have added the allow and deny htaccess in this code to.
so you dnt need to add another code from blocking them.
you can add yours if you what
fell free to modify it
Here is the code .
Code:
# M4DSh4k:[USER AGENTS Spam bot Disabler]
#SetEnvIfNoCase User-Agent ^$ keep_out
SetEnvIfNoCase User-Agent (<|>|'|<|%0A|%0D|%27|%3C|%3E|%00|href\s) keep_out
SetEnvIfNoCase User-Agent (archiver|binlar|casper|checkprivacy|clshttp|cmsworldmap|comodo|curl|diavol|dotbot|email|extract|feedfinder|flicky|grab|harvest|httrack|ia_archiver|jakarta|kmccrew|libwww|loader|miner|nikto|nutch|planetwork|purebot|pycurl|python|scan|skygrid|sucker|turnit|vikspider|wget|winhttp|youda|zmeu|zune) keep_out
Order Allow,Deny
Allow from all
Deny from env=keep_out
for more info regarding this
read this : http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html
0 comments:
Post a Comment