TropicalBeach Posted March 29, 2006 Share Posted March 29, 2006 Hi,Newbie here...I wish to password a web folder to allow only a few chosen users to see the contents. Eg. www.foo.com/2006 What Php code is needed? Link to comment https://forums.phpfreaks.com/topic/6096-how-to-password-a-unix-folder/ Share on other sites More sharing options...
lead2gold Posted March 29, 2006 Share Posted March 29, 2006 [!--quoteo(post=359649:date=Mar 29 2006, 08:19 AM:name=TropicalBeach)--][div class=\'quotetop\']QUOTE(TropicalBeach @ Mar 29 2006, 08:19 AM) [snapback]359649[/snapback][/div][div class=\'quotemain\'][!--quotec--]Hi,Newbie here...I wish to password a web folder to allow only a few chosen users to see the contents. Eg. www.foo.com/2006 What Php code is needed?[/quote]you can do that with an sql database and have a login page. or you can use somethign as simple as a .htaccess file if you want..htaccess files just have to reside in the directory you want to protect (it will protect all subdirectories as well) and force the user to enter a user/pass before entering that dir. Link to comment https://forums.phpfreaks.com/topic/6096-how-to-password-a-unix-folder/#findComment-21939 Share on other sites More sharing options...
trq Posted March 29, 2006 Share Posted March 29, 2006 Are you talking about through linux or through php. In Linux you would need to use chmod to enable read/write permissions.Your question however isn't particularely clear. Link to comment https://forums.phpfreaks.com/topic/6096-how-to-password-a-unix-folder/#findComment-21943 Share on other sites More sharing options...
Neomie Posted October 27, 2006 Share Posted October 27, 2006 [color=purple]I have a similar problem - I've just installed phpmyadmin on my webserver and now discover anyone can access my entire database. Please help!!!!I want phpmyadmin, but I want to add some security.Thanks. [/color] Neo Link to comment https://forums.phpfreaks.com/topic/6096-how-to-password-a-unix-folder/#findComment-115468 Share on other sites More sharing options...
effigy Posted October 27, 2006 Share Posted October 27, 2006 [url=http://httpd.apache.org/docs/2.2/howto/auth.html]Apache: Authentication, Authorization and Access Control[/url][url=http://us3.php.net/features.http-auth]HTTP authentication with PHP[/url] Link to comment https://forums.phpfreaks.com/topic/6096-how-to-password-a-unix-folder/#findComment-115497 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.