1
hyperpod
Security in a specific directory using Apache .htaccess
  • 2005/3/9 14:27

  • hyperpod

  • Quite a regular

  • Posts: 359

  • Since: 2004/10/4


Hi, I would like to limit in my site the ability for the server to execute php scripts in a specific directory.

Im wondering if there is any side effects for using this in a .htaccess file:

le="color: #000000"><?php <Files ~ ".(php|phtml|php3|php4|php5|shtml|inc)$"> Order deny, allow Deny from all </Files>


shouldnt this stop any script from executing that is in this directory?

for example, /uploads.... if this were put into that dir in .htaccess, then even if an uploaded script made it into this directory, would this not stop any executing php in /uploads?

Thanks,

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits