bludit/.htaccess
Anaggh Sreenath bdd594da0c Fix Security issue
Deny access to bl-content directory txt files instead of content
directory txt files.
2016-01-26 19:11:31 +05:30

15 lines
289 B
ApacheConf

AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
# Enable rewrite rules
RewriteEngine on
# Deny direct access to .txt files
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]
# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]
</IfModule>