tibberous Posted July 17, 2007 Share Posted July 17, 2007 I need to block .inc files from being served. Is there a way I can do that with apache? Quote Link to comment Share on other sites More sharing options...
steviewdr Posted July 17, 2007 Share Posted July 17, 2007 Put this in a .htaccess file: FilesMatch "\.(inc)$"> Order Allow,Deny Deny from all </FilesMatch> That should do it. -steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.