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? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 15, 2008 Share Posted July 15, 2008 chmods??? Quote Link to comment 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... Quote Link to comment 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 Quote Link to comment 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... Quote Link to comment 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. Quote Link to comment 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.