burnsy92 Posted March 16, 2009 Share Posted March 16, 2009 Hey All, I have a question: I have a directory which we'll call /user/. I want to limit access in that directory (and sub-directories if possible) to only static files using a .htaccess file. I don't want the users to be able to run any server-side scripts. SSI could probably be an expception - either way. Any suggestions? Help would me much appreciated! Thanks in advance! Alex Quote Link to comment https://forums.phpfreaks.com/topic/149591-disable-phpcgi-access-in-directory-using-htaccess/ Share on other sites More sharing options...
trq Posted March 16, 2009 Share Posted March 16, 2009 php_value engine off You might however want to place this within your users vhost configurations. Placing it within a .htaccess file ensures the user can edit this value. Quote Link to comment https://forums.phpfreaks.com/topic/149591-disable-phpcgi-access-in-directory-using-htaccess/#findComment-785550 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.