ciber Posted June 23, 2010 Share Posted June 23, 2010 I have created a PHP application, which uses apache rewrite for the URLs, my problem is the rewritten urls are very similar to some of the files im using, is there a way to deny direct access to these files using htaccess? for example x.php, y.php and z.html Quote Link to comment https://forums.phpfreaks.com/topic/205654-deny-access-for-specific-files/ Share on other sites More sharing options...
premiso Posted June 23, 2010 Share Posted June 23, 2010 http://www.garnetchaney.com/htaccess_tips_and_tricks.shtml Search for "Protecting Single File" on that page for examples. Quote Link to comment https://forums.phpfreaks.com/topic/205654-deny-access-for-specific-files/#findComment-1076207 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.