Difference between revisions of "How do you block directory scans using htaccess?"
From Joomla! Documentation
m (Hutchy68 moved page How do you block directory scans using .htaccess? to How do you block directory scans using htaccess?: fixing page not accessible) |
m (−Category:FAQ; −Category:Version 1.5 FAQ; −Category:Version 1.6 FAQ using HotCat) |
||
Line 16: | Line 16: | ||
$ Means end of line | $ Means end of line | ||
− | <noinclude> | + | <noinclude> |
[[Category:Administration FAQ]] | [[Category:Administration FAQ]] | ||
− | |||
− | |||
[[Category:Security]]</noinclude> | [[Category:Security]]</noinclude> |
Revision as of 19:45, 1 September 2013
Directions
Add Apache rewrite rules to your .htaccess file. For example, the following will redirect all attempts to access files with names starting with, "phpMyAdmin" to index.php.
Sample Apache Rewrite Rule
RewriteRule ^/phpMyAdmin.*$ /index.php
Some Regular Expression Tips
^ Means start of filename . Means any character other than newlines * Means one or more of the previous character $ Means end of line