.htaccess deny all except index.html

By placing the following into the .htaccess file you will deny everyone access to all files except index.html

Order Deny,Allow
Deny from all

<FilesMatch "^(index\.html)?$">
Allow from all
</FilesMatch>
Print Friendly, PDF & Email

More Like This


Categories


Web Hosting
  • Post a comment