View Full Version : Register before acessing site

09-07-2006, 02:01 AM
I'm looking for a code that make it so you have to register....

A Website not a forum;)

09-07-2006, 09:33 AM
Depends on how simple or complicated you want things to be, or what sort of access control you're looking for.

If your web host is running Apache, you can make use of .htaccess to create a simple login protection of (parts of) your site. Google for "htaccess password protection" and you should find a number of useful resources; here's a brief introduction (http://www.javascriptkit.com/howto/htaccess3.shtml).

If you want something more sophisticated, you can think of using some sort of session mechanism, and a user administration to set specific authorisations on a user level. This would require server side scripting, though.

09-07-2006, 10:59 PM
i'm horrible with HTML and don't really understand this but i found another way to do this... A message board is joined in with the site so you register from the forum......................;)