TEXT 25
.htaccess indexing directory Guest on 1st August 2020 12:42:12 PM
  1. # DISABLE DIRECTORY VIEWS
  2. Options -Indexes
  3. # ENABLE DIRECTORY VIEWS
  4. Options +Indexes
  5.  
  6. #Fancy indexing shows the files plus #additional information about them like the #date the file is last modified, their size and #description.
  7. Options +Indexes
  8. IndexOptions +FancyIndexing
  9. #a list of the files located inside it, then #disable the indexing
  10. Options +Indexes
  11. IndexOptions -FancyIndexing
  12. # STRONG HTACCESS PROTECTION
  13. <Files ~ "^.*\.([Hh][Tt][Aa])">
  14.  order allow,deny
  15.  deny from all
  16. </Files>
  17. # DIRECTORY CUSTOMIZATION
  18. <IfModule mod_autoindex.c>
  19.  .
  20.  .
  21.  .
  22.  [ HTAccess directives relying on mod_autoindex go here ]
  23.  .
  24.  
  25. .
  26. </IfModule>
  27.  
  28. AddDescription "MPEG Layer 3 Format" .mp3
  29. AddDescription "GZIP compressed TAR archive" .tgz .tar.gz
  30. AddDescription "GZIP compressed archive" .Z .z .gz .zip
  31. AddDescription "RAR compressed archive" .rar
  32. AddDescription "TAR compressed archive" .tar
  33. AddDescription "ZIP compressed archive" .zip
  34. AddDescription "Windows executable file" .exe
  35. AddDescription "Common Gateway Interface" .cgi
  36. AddDescription "Joint Photographics Experts Group" .jpg .jpeg .jpe
  37. AddDescription "Graphic Interchange Format" .gif
  38. AddDescription "Portable Network Graphic" .png
  39. AddDescription "Vector graphic" .ps .ai .eps
  40. AddDescription "Hypertext Markup Language" .html .shtml .htm
  41. AddDescription "Cascading Style Sheet" .css
  42. AddDescription "DocType Definition" .dtd
  43. AddDescription "Extensible Markup Language" .xml
  44. AddDescription "Win32 compressed HTML help" .chm
  45. AddDescription "Adobe Portable Document Format" .pdf
  46. AddDescription "Plain text file" .txt .nfo .faq .readme
  47. AddDescription "Unix man page" .man
  48. AddDescription "Email data" .eml .mbox
  49. AddDescription "Microsoft Word document" .doc
  50. AddDescription "PHP: Hypertext Preprocessor script" .php  .php3 .php4
  51. AddDescription "PHP: Hypertext Preprocessor source code" .phps
  52. AddDescription "Javascript" .js
  53. AddDescription "Java code"  .java
  54. AddDescription "Unix shell script" .sh .shar .csh .ksh .command
  55. AddDescription "Mac OS X shell script" .command
  56. AddDescription "Configuration file" .conf
  57. AddDescription "Mac OS X terminal" .term
  58. AddDescription "BitTorrent file" .torrent
  59. AddDescription "Windows link" .lnk .url
  60. # FILE DESCRIPTIONS
  61. AddDescription "<span class='description'>MPEG Layer 3 Format</span>" .mp3
  62. AddDescription "<span class='description'>GZIP compressed TAR archive</span>" .tgz .tar.gz
  63. AddDescription "<span class='description'>GZIP compressed archive</span>" .Z .z .gz .zip
  64. AddDescription "<span class='description'>RAR compressed archive</span>" .rar
  65. AddDescription "<span class='description'>TAR compressed archive</span>" .tar
  66. AddDescription "<span class='description'>ZIP compressed archive</span>" .zip
  67. AddDescription "<span class='description'>Windows executable file</span>" .exe
  68. AddDescription "<span class='description'>Common Gateway Interface</span>" .cgi
  69. AddDescription "<span class='description'>Joint Photographics Experts Group</span>" .jpg .jpeg .jpe
  70. AddDescription "<span class='description'>Graphic Interchange Format</span>" .gif
  71. AddDescription "<span class='description'>Portable Network Graphic</span>" .png
  72. AddDescription "<span class='description'>Vector graphic</span>" .ps .ai .eps
  73. AddDescription "<span class='description'>Hypertext Markup Language</span>" .html .shtml .htm
  74. AddDescription "<span class='description'>Cascading Style Sheet</span>" .css
  75. AddDescription "<span class='description'>DocType Definition</span>" .dtd
  76. AddDescription "<span class='description'>Extensible Markup Language</span>" .xml
  77. AddDescription "<span class='description'>Win32 compressed HTML help</span>" .chm
  78. AddDescription "<span class='description'>Adobe Portable Document Format</span>" .pdf
  79. AddDescription "<span class='description'>Plain text file</span>" .txt .nfo .faq .readme
  80. AddDescription "<span class='description'>Unix man page</span>" .man
  81. AddDescription "<span class='description'>Email data</span>" .eml .mbox
  82. AddDescription "<span class='description'>Microsoft Word document</span>" .doc
  83. AddDescription "<span class='description'>PHP: Hypertext Preprocessor script</span>" .php  .php3 .php4
  84. AddDescription "<span class='description'>PHP: Hypertext Preprocessor source code</span>" .phps
  85. AddDescription "<span class='description'>Javascript</span>" .js
  86. AddDescription "<span class='description'>Java code</span>"  .java
  87. AddDescription "<span class='description'>Unix shell script</span>" .sh .shar .csh .ksh .command
  88. AddDescription "<span class='description'>Mac OS X shell script</span>" .command
  89. AddDescription "<span class='description'>Configuration file</span>" .conf
  90. AddDescription "<span class='description'>Mac OS X terminal</span>" .term
  91. AddDescription "<span class='description'>BitTorrent file</span>" .torrent
  92. AddDescription "<span class='description'>Windows link</span>" .lnk .url

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.