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:

<Files ".(php|phtml|php3|php4|php5|shtml|inc)$">
 
Order denyallow
 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

Who's Online

166 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 166


more...

Donat-O-Meter

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

Latest GitHub Commits