Password protect website

10/30/2013 19:35 tolska#1
I am in the middle of making a website using basic html,
I am trying to password protect a page/area which either has 1 general password or where I can give people a username / password and stop access at any time.

I would prefer the second option where I create a user/pass for them.

Could anyone assist me with this please, thanks
10/30/2013 19:49 マルコ#2
google for ".htpasswd". That way you can leave your page at pure HTML without the need for server side scripting.
10/30/2013 19:50 KoKsPfLaNzE#3
if you use only html you can use [Only registered and activated users can see links. Click Here To Register...]
10/30/2013 22:22 tolska#4
thanks, to be honest I don't know how to in put this into the html,

I went to the link above which they gave me, SAGROUP:$apr1$nWAJT8FE$jWBaGaqi9RBitVJCJwQ730

Do I just create a new file on hosting named .htpasswd and paste the above in?
How do you select the pages? Sorry I don't know this type of html just basic
10/30/2013 23:21 マルコ#5
Say... do you actually _read_ the fucking manual? It's written on the page Kokspflanze gave you. You just have to use their .htaccess generator to protect files or directories in combination with the .htpasswd generator.

And btw, this is no HTML, this is a configuration file for Apache Web Server.
If you use another web server (let's say NGINX), you will have to google ".htpasswd nginx" to find a way to convert the configuration.
10/31/2013 12:26 tolska#6
so if the hosting uses linux servers I'll need to find out about htpasswd in linux? sorry im a noob... Don't know a lot.
10/31/2013 13:32 マルコ#7
linux is an operating system. Apache or NGINX are a piece of software running on it.
99% of all hosters use Apache, so you most probably won't have to worry about that. It was just part of the explanation what the .ht-files are.