Advertisement
Mr_Gavitt

Untitled

Jul 12th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. //Caching schema
  2. <FilesMatch "\.()$">
  3. Header set Cache-Control "max-age=0"
  4. </FilesMatch>
  5.  
  6. //Password Protect file
  7. <Files assets>
  8. AuthName "Prompt"
  9. AuthType Basic
  10. AuthUserFile .htpasswd
  11. Require valid-user
  12. </Files>
  13.  
  14. //Custom 400 errors
  15. ErrorDocument 400
  16.  
  17. //Custom 401 errors
  18. ErrorDocument 401
  19.  
  20. //Custom 403 errors
  21. ErrorDocument 403
  22.  
  23. //Custom 404 errors
  24. ErrorDocument 404
  25.  
  26. //Custom 500 errors
  27. ErrorDocument 500
  28.  
  29. //Block bad bots
  30. RewriteEngine On
  31. RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
  32. RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
  33. RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
  34. RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
  35. RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
  36. RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
  37. RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
  38. RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
  39. RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
  40. RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
  41. RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
  42. RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
  43. RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
  44. RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
  45. RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
  46. RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
  47. RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
  48. RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
  49. RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
  50. RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
  51. RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
  52. RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
  53. RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
  54. RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
  55. RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
  56. RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
  57. RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
  58. RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
  59. RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
  60. RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
  61. RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
  62. RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
  63. RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
  64. RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
  65. RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
  66. RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
  67. RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
  68. RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
  69. RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
  70. RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
  71. RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
  72. RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
  73. RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
  74. RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
  75. RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
  76. RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
  77. RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
  78. RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
  79. RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
  80. RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
  81. RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
  82. RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
  83. RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
  84. RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
  85. RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
  86. RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
  87. RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
  88. RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
  89. RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
  90. RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
  91. RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
  92. RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
  93. RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
  94. RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
  95. RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
  96. RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
  97. RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
  98. RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
  99. RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
  100. RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
  101. RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
  102. RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
  103. RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
  104. RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
  105. RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
  106. RewriteCond %{HTTP_USER_AGENT} ^Zeus
  107. RewriteRule ^.* - [F,L]
  108.  
  109. //Change default directory page
  110. DirectoryIndex src/index.html
  111.  
  112. //Prevent viewing of .htaccess file
  113. <Files .htaccess>
  114. order allow,deny
  115. deny from all
  116. </Files>
  117.  
  118. //Prevent directory listings
  119. Options All -Indexes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement