louis_coetzee Posted January 26, 2009 Share Posted January 26, 2009 Can anyone tell me if it is possible to change the htaccess file so that lets say no one can access the file, except for another php file listed. for example: http://localhost/website/index.php?id=res index is the only "one", file that can use/access res.php, I want to do this so that user cannot access res.php on its own by entering for ex. www.website.co.za/folder/folder/res.php Quote Link to comment https://forums.phpfreaks.com/topic/142465-htaccess-help/ Share on other sites More sharing options...
MadTechie Posted January 26, 2009 Share Posted January 26, 2009 Why not just put the file in a folder lower that the html_public folder ? ie root +-----Public_html +-----------+index.php +-----------+Blar.php +-----hidden +-------+hidden.php Quote Link to comment https://forums.phpfreaks.com/topic/142465-htaccess-help/#findComment-746463 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.