home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / .htaccess next >
Text File  |  2014-03-09  |  2KB  |  50 lines

  1. # bad bot, go away
  2. # http://graphicline.co.za/blogs/what-is-ezooms-bot
  3. # 7k hits out of 50k bot hits
  4.  
  5. RewriteEngine on
  6.  
  7. RewriteCond %{HTTP_USER_AGENT} ^Ezooms
  8. RewriteCond %{HTTP_USER_AGENT} ^Ezooms/1.0
  9. RewriteRule ^(.*)$ http://getlostbadbot/
  10.  
  11. # enable expirations
  12. ExpiresActive On
  13. # expire GIF images after a month in the client's cache
  14. ExpiresByType image/gif A2592000
  15. # HTML documents are good for a month from the
  16. # time they were changed
  17. ExpiresByType text/html M2592000
  18.  
  19.  
  20. # http://www.abestweb.com/forums/midnight-cafe-11/bad-bod-mod-htaccess-user-agent-string-java-1-4-1_04-a-115132.html
  21.  
  22. <Limit GET POST>
  23. #The next line modified by DenyIP
  24. order allow,deny
  25. #The next line modified by DenyIP
  26. #deny from all
  27. allow from all
  28. </Limit>
  29.  
  30.  
  31. SetEnvIfNoCase User-Agent .*Twiceler.* bad_bot
  32. SetEnvIfNoCase User-Agent .*Java/1.4.1_04.* bad_bot
  33. SetEnvIfNoCase User-Agent .*Twiceler.* bad_bot
  34. SetEnvIfNoCase User-Agent .*VoilaBot BETA 1.2.* bad_bot
  35. SetEnvIfNoCase User-Agent .*libwww-perl/5.805.* bad_bot
  36. SetEnvIfNoCase User-Agent .*Java/1.5.0_11.* bad_bot
  37. SetEnvIfNoCase User-Agent .*Sogou web spider/3.0.* bad_bot
  38. SetEnvIfNoCase User-Agent .*psbot.* bad_bot
  39. SetEnvIfNoCase User-Agent .*Exabot.* bad_bot
  40. SetEnvIfNoCase User-Agent .*Charlotte/1.0b.* bad_bot
  41. SetEnvIfNoCase User-Agent .*boitho.com-dc.* bad_bot
  42. SetEnvIfNoCase User-Agent .*ajSitemap.* bad_bot
  43. SetEnvIfNoCase User-Agent .*bot/1.0.* bad_bot
  44. SetEnvIfNoCase User-Agent .*panscient.com.* bad_bot
  45. SetEnvIfNoCase User-Agent .*WebDataCentreBot/1.0.* bad_bot
  46.  
  47. order allow,deny
  48. deny from env=bad_bot
  49. allow from all
  50.