[htaccess] Block Spam Bots from accessing your site.


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 Big Grin

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|dotb​ot|email|extract|feedfinder|flicky|grab|harvest|httrack|ia_archiver|jakarta|kmcc​rew|libwww|loader|miner|nikto|nutch|planetwork|purebot|pycurl|python|scan|skygri​d|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

Penulis : Anon Cop ~ Blog is bassically for giving maximum knowledge of hacking to provide security.

Latest Article [htaccess] Block Spam Bots from accessing your site. is published by Anon Cop on Thursday 8 November 2012. i think this article will be helpfull if so dont forget to thanks in comments already have 0 Comments: in this post [htaccess] Block Spam Bots from accessing your site.
 

0 comments:

Post a Comment