mardi 28 avril 2015

Options -Indexes displays seemingly random string

I am trying to disallow directory browsing by adding Options -Indexes to a .htaccess file on my website. When I try to load a page with directory browsing turned off, all that is shown is a seemingly random string on a blank page. I want disallowed pages to show a 403 error.

The string is: ‹³É(Éͱãâ´ÉHML±ãRN›’Ì’œT;c·ü¢¤Ì””Ô<}ˆ X…>BµMR~J%LcsiqI~®HoJ~rinj^‰ž~LD1P?ÈV&Ž§­|

The .htaccess file:

Options -Indexes

SetEnvIfNoCase User-Agent "^libwww-perl*" block_bad_bots
Deny from env=block_bad_bots

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
RewriteRule .* – [F,L]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^awkwardpetsiblings\.org [NC]
RewriteRule (.*) [R=301,L]
RewriteCond %{HTTP_HOST} ^awkwardpetsiblings\.net [NC]
RewriteRule (.*) [R=301,L]
RewriteCond %{HTTP_HOST} ^awkwardpetsiblings\.x10host\.com [NC]
RewriteRule (.*) [R=301,L]

ErrorDocument 403: "/php/err/403.php"
ErrorDocument 404: "/php/err/404.php"
ErrorDocument 500: "/php/err/500.php"

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE image/svg
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

<ifModule mod_deflate.c>
  <filesMatch ".(css|js|x?html?|php|svg)$">
    SetOutputFilter DEFLATE

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType text/css "access plus 86400 seconds"
  ExpiresByType text/javascript "access plus 86400 seconds"
  ExpiresByType application/javascript "access plus 86400 seconds"
  ExpiresByType application/x-javascript "access plus 86400 seconds"
  ExpiresByType image/x-icon "access plus 604800 seconds"
  ExpiresByType image/gif "access plus 604800 seconds"
  ExpiresByType image/jpeg "access plus 604800 seconds"
  ExpiresByType image/png "access plus 604800 seconds"
  ExpiresByType font/woff2 "access plus 31560000 seconds"
  ExpiresByType application/x-font-woff "access plus 31560000 seconds"

Header unset ETag
FileETag None

The webpage is Can anyone tell me what is going on?

Aucun commentaire:

Enregistrer un commentaire