jeboy Posted June 8, 2007 Share Posted June 8, 2007 I have a directory that has no index page, so the tendency is, when someone tried to access the directory, the server will display all the contents of that directory. How can I restrict the directory from displaying its contents? or how can I restrict users from browsing the directory? Thanks. Link to comment https://forums.phpfreaks.com/topic/54679-how-to-prevent-directory-from-displaying-its-contents-when-theres-no-index-page/ Share on other sites More sharing options...
unidox Posted June 8, 2007 Share Posted June 8, 2007 .htaccess Link to comment https://forums.phpfreaks.com/topic/54679-how-to-prevent-directory-from-displaying-its-contents-when-theres-no-index-page/#findComment-270786 Share on other sites More sharing options...
steviewdr Posted June 14, 2007 Share Posted June 14, 2007 and place the following inside the .htaccess file: Options -Indexes -steve Link to comment https://forums.phpfreaks.com/topic/54679-how-to-prevent-directory-from-displaying-its-contents-when-theres-no-index-page/#findComment-274662 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.