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? Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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] 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.