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

365 user(s) are online (307 user(s) are browsing Support Forums)


Members: 0


Guests: 365


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits