MemphiS Posted June 20, 2007 Share Posted June 20, 2007 so far ive got this but only get a 500 error <files> order allow,deny </files> allow from .mysite.com deny from .* Link to comment https://forums.phpfreaks.com/topic/56371-prevent-access-to-directories-using-htaccess/ Share on other sites More sharing options...
scrupul0us Posted June 20, 2007 Share Posted June 20, 2007 first off... u have to specify what type of files... and it all has to be within the <files> or as preferred <filesmatch> construct <FilesMatch "^\.ht"> Order allow,deny Deny from all </FilesMatch> that will block all access to and file starting with .ht example: .htaccess i suggest you start reading the manual on the apache.org website... Link to comment https://forums.phpfreaks.com/topic/56371-prevent-access-to-directories-using-htaccess/#findComment-278566 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.