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 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. 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
Archived
This topic is now archived and is closed to further replies.