MacResource
easiest way to assign username and password to access site... - Printable Version

+- MacResource (https://forums.macresource.com)
+-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1)
+--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3)
+--- Thread: easiest way to assign username and password to access site... (/showthread.php?tid=88686)



easiest way to assign username and password to access site... - bazookaman - 11-30-2009

I may need to set up a site (that is already built) so that each user would need a username and password to access all or a portion of it. Whats the best and quickest way to get that done?


Re: easiest way to assign username and password to access site... - AAA - 11-30-2009

That's one of my questions, too.


Re: easiest way to assign username and password to access site... - bazookaman - 11-30-2009

I'm thinking .htaccess would be the best way to do it for me. I've found multiple javascript solutions but I've also read that they're pretty easy to circumvent.


Re: easiest way to assign username and password to access site... - AAA - 11-30-2009

I've been told that drupal is one easy/ier way to go. Not sure how it would 'fit' around an existing site.


Re: easiest way to assign username and password to access site... - wowzer - 11-30-2009

I've done .htaccess.

I've also done crypt based php code that looks up in a mysql database.

Your choice.


Re: easiest way to assign username and password to access site... - Filliam H. Muffman - 11-30-2009

What kind of a server is it hosted on?


Re: easiest way to assign username and password to access site... - clay - 11-30-2009

htaccess is the easiest way, but there are certainly more flexible ways to do this if you have dynamic content that is dependent on a username, for instance. If you have Dreamweaver, you can set up something in PHP/MySQL pretty easily for multiple users, but for ease of implementation, try htaccess.

Your web host control panel should also have a password protection feature that will accomplish the same thing.


Re: easiest way to assign username and password to access site... - bazookaman - 11-30-2009

Yeah. I'm looking for quick and easy. There will be a tight deadline whenever I get the go ahead so it will need to be implemented post haste.