Advertisement
AndrzejL

.htaccess

Mar 12th, 2014
745
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. grep -v '#' ./.htaccess
  2.  
  3. BrowserMatchNoCase Morfeus bad_bot
  4. BrowserMatchNoCase Strikes bad_bot
  5. BrowserMatchNoCase Again bad_bot
  6. BrowserMatchNoCase http://help.goo.ne.jp/door/crawler.html bad_bot
  7. BrowserMatchNoCase ichiro bad_bot
  8. BrowserMatchNoCase Googlebot bad_bot
  9. BrowserMatchNoCase Google bad_bot
  10. BrowserMatchNoCase N905i(c100;TB;W24H16) bad_bot
  11. BrowserMatchNoCase Googlebot-Mobile/2.1 bad_bot
  12. BrowserMatchNoCase DoCoMo bad_bot
  13. BrowserMatchNoCase http://www.google.com/bot.html bad_bot
  14. BrowserMatchNoCase Morfeus bad_bot
  15. BrowserMatchNoCase Morfeus bad_bot
  16. BrowserMatchNoCase Yandex bad_bot
  17. BrowserMatchNoCase YandexBot bad_bot
  18. BrowserMatchNoCase http://yandex.com/bots bad_bot
  19. BrowserMatchNoCase Seznam bad_bot
  20. BrowserMatchNoCase BOT bad_bot
  21. BrowserMatchNoCase FullText bad_bot
  22. BrowserMatchNoCase facebookexternalhit bad_bot
  23. BrowserMatchNoCase Unwind bad_bot
  24. BrowserMatchNoCase Fetchor bad_bot
  25. BrowserMatchNoCase UnwindFetchor bad_bot
  26. BrowserMatchNoCase COMODO bad_bot
  27. BrowserMatchNoCase Spider bad_bot
  28. BrowserMatchNoCase COMODOSpider bad_bot
  29. BrowserMatchNoCase Hailoobot bad_bot
  30. BrowserMatchNoCase Hailoo bad_bot
  31. BrowserMatchNoCase Feedfetcher bad_bot
  32. BrowserMatchNoCase Google bad_bot
  33. BrowserMatchNoCase Baidu bad_bot
  34. BrowserMatchNoCase Bing bad_bot
  35. BrowserMatchNoCase Nutch bad_bot
  36. BrowserMatchNoCase larbin bad_bot
  37. <RequireAll>
  38. Require all granted
  39. Require not env bad_bot
  40. </RequireAll>
  41.  
  42. <IfModule mod_rewrite.c>
  43. RewriteEngine On
  44. RewriteBase /
  45. RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC]
  46. RewriteRule ^(.*)$ – [F,L]
  47. RewriteCond %{QUERY_STRING} \.\.\/ [NC,OR]
  48. RewriteCond %{QUERY_STRING} boot\.ini [NC,OR]
  49. RewriteCond %{QUERY_STRING} tag\= [NC,OR]
  50. RewriteCond %{QUERY_STRING} ftp\: [NC,OR]
  51. RewriteCond %{QUERY_STRING} http\: [NC,OR]
  52. RewriteCond %{QUERY_STRING} https\: [NC,OR]
  53. RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
  54. RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [NC,OR]
  55. RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [NC,OR]
  56. RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>|ĂȘ|”|;|\?|\*|=$).* [NC,OR]
  57. RewriteCond %{QUERY_STRING} ^.*(%24&x).* [NC,OR]
  58. RewriteCond %{QUERY_STRING} ^.*(%0|%A|%B|%C|%D|%E|%F|127\.0).* [NC,OR]
  59. RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR]
  60. RewriteCond %{QUERY_STRING} ^.*(request|select|insert|union|declare).* [NC]
  61. RewriteCond %{HTTP_COOKIE} !^.*WordPress_logged_in_.*$
  62. RewriteRule ^(.*)$ – [F,L]
  63. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement