taith Posted July 15, 2008 Share Posted July 15, 2008 hey everyone! i know this isnt specifically a php question... i'm looking for a way to restrict access to a folder via .htaccess... i dont want to use a user/pass... i mean inaccessable... so nobody can see/open the folder, or any files within... i was thinking a folder above the root... but php needs to have ability to upload to it, and i cannot manually configure the server to allow that... any ideas? Link to comment https://forums.phpfreaks.com/topic/114869-restrict-folder-access/ Share on other sites More sharing options...
cooldude832 Posted July 15, 2008 Share Posted July 15, 2008 chmods??? Link to comment https://forums.phpfreaks.com/topic/114869-restrict-folder-access/#findComment-590700 Share on other sites More sharing options...
taith Posted July 15, 2008 Author Share Posted July 15, 2008 unfortunatly not... the only way i want to see if these files are even there, is via the FTP... chmod would restrict the data, but still achnoledge that it is there... Link to comment https://forums.phpfreaks.com/topic/114869-restrict-folder-access/#findComment-590704 Share on other sites More sharing options...
JD* Posted July 15, 2008 Share Posted July 15, 2008 PHP can still upload to a folder outside the root. Just place your folder there, and then when you upload, have it do a move file to the absolute path on the system Link to comment https://forums.phpfreaks.com/topic/114869-restrict-folder-access/#findComment-590705 Share on other sites More sharing options...
taith Posted July 15, 2008 Author Share Posted July 15, 2008 problem is, my ftp cannot see pre-root... Link to comment https://forums.phpfreaks.com/topic/114869-restrict-folder-access/#findComment-590711 Share on other sites More sharing options...
JD* Posted July 15, 2008 Share Posted July 15, 2008 You can use .htaccess with the deny all functionality, but I'm not a genius with that stuff, so some googling is probaby in order to get it working. Link to comment https://forums.phpfreaks.com/topic/114869-restrict-folder-access/#findComment-590739 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.