Jump to content

Restrict dir access...


Arty Ziff

Recommended Posts

If you don't want somebody directly accessing a file, don't put it anywhere under the web root.

 

...unless the folder is well-protected, like with a .htaccess and

Order allow,deny # default behavior is to deny access

or (not as good)

RewriteEngine On
RewriteRule ^ - [R=404] # or redirect to your error page

Link to comment
https://forums.phpfreaks.com/topic/225288-restrict-dir-access/#findComment-1163472
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.