Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. User Agent Blocks (Mainly for bots)
  2.  
  3. If you are being flooded by bots, or simply want to block certain potentially unwanted bots, you can use or adapt the sample code below.
  4.  
  5. Sample Code
  6.  
  7. ##Start Coding.
  8.  
  9. #Block potentially unwanted bots
  10. #This blocks requests to apache via their User Agent.
  11. SetEnvIfNoCase user-Agent ^FrontPage [NC,OR]
  12. SetEnvIfNoCase user-Agent ^Java.* [NC,OR]
  13. SetEnvIfNoCase user-Agent ^Microsoft.URL [NC,OR]
  14. SetEnvIfNoCase user-Agent ^MSFrontPage [NC,OR]
  15. SetEnvIfNoCase user-Agent ^Offline.Explorer [NC,OR]
  16. SetEnvIfNoCase user-Agent ^[Ww]eb[Bb]andit [NC,OR]
  17. SetEnvIfNoCase user-Agent ^Zeus [NC]
  18.  
  19. <limit GET POST>
  20.  
  21. #DENYING YOUR CONNECTIONS THNX.
  22. Order Allow,Deny
  23. Allow from all
  24. Deny from env=bad_bot
  25.  
  26. </limit>
  27.  
  28. ##end code
  29. Here is a compilation of potentially unwanted bots for you to use:
  30.  
  31. ##begin code
  32. ##start blocking potentially unwanted bots.
  33. RewriteEngine On
  34. RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
  35. RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
  36. RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
  37. RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
  38. RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
  39. RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
  40. RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
  41. RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
  42. RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
  43. RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
  44. RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
  45. RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
  46. RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
  47. RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
  48. RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
  49. RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
  50. RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
  51. RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
  52. RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
  53. RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
  54. RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
  55. RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
  56. RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
  57. RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
  58. RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
  59. RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
  60. RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
  61. RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
  62. RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
  63. RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
  64. RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
  65. RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
  66. RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
  67. RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
  68. RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
  69. RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
  70. RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
  71. RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
  72. RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
  73. RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
  74. RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
  75. RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
  76. RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
  77. RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
  78. RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
  79. RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
  80. RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
  81. RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
  82. RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
  83. RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
  84. RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
  85. RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
  86. RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
  87. RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
  88. RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
  89. RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
  90. RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
  91. RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
  92. RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
  93. RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
  94. RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
  95. RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
  96. RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
  97. RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
  98. RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
  99. RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
  100. RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
  101. RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
  102. RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
  103. RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
  104. RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
  105. RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
  106. RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
  107. RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
  108. RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
  109. RewriteCond %{HTTP_USER_AGENT} ^Zeus
  110. RewriteRule ^.* - [F,L]
  111. ##end code. bai bots.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement