TapeGun007 Posted July 17, 2013 Share Posted July 17, 2013 (edited) I wrote a website some time ago that shares files for specific authorized individuals. Nobody can access the files without logging in. EXCEPT, Google has somehow scanned the directory, and if someone types in a key phrase specific enough, Google has a direct link to the file right in their seach engine. So, I placed a username/password on the folder. Now people can't access the files without entering this all the time. Unfortunately, neither can my users. So is there a way for PHP to automatically enter the username/password, or is there some other way to protect the files? Thanks for the help. Edited July 17, 2013 by TapeGun007 Quote Link to comment Share on other sites More sharing options...
trq Posted July 17, 2013 Share Posted July 17, 2013 The files should be stored outside of your web root and served up via php once the user has been authenticated. Should be plenty of examples around showing how this is done. Quote Link to comment Share on other sites More sharing options...
Solution TapeGun007 Posted July 18, 2013 Author Solution Share Posted July 18, 2013 Hey thanks. I called my web host, because I wasn't quite sure what you meant. I was able to move the files out of the public folder. Unfortunately, it's going to break a few things, but I can probably figure it out from here. 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.