Jump to content

Restrict access to a directory


insidus

Recommended Posts

So for my website, i have a folder structure of 

 

/styles/

/js/

/includes/

 

etc. if i navigate to those folder locations in the url, it shows a file/directly listing of whats inside. Is there a way of throwing a 404 error if they are accessed? or do i have to do it by using a index.php file?

 

/insidus

Link to comment
https://forums.phpfreaks.com/topic/264234-restrict-access-to-a-directory/
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.