Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 07:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Password protect website

Discussion on Password protect website within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2013
Posts: 18
Received Thanks: 0
Password protect website

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
tolska is offline  
Old 10/30/2013, 19:49   #2

 
マルコ's Avatar
 
elite*gold: 1329
Join Date: Jun 2009
Posts: 1,873
Received Thanks: 960
google for ".htpasswd". That way you can leave your page at pure HTML without the need for server side scripting.
マルコ is offline  
Old 10/30/2013, 19:50   #3
 
KoKsPfLaNzE's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 731
Received Thanks: 233
if you use only html you can use
KoKsPfLaNzE is offline  
Old 10/30/2013, 22:22   #4
 
elite*gold: 0
Join Date: Aug 2013
Posts: 18
Received Thanks: 0
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
tolska is offline  
Old 10/30/2013, 23:21   #5

 
マルコ's Avatar
 
elite*gold: 1329
Join Date: Jun 2009
Posts: 1,873
Received Thanks: 960
Say... do you actually _read_ the ******* 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.
マルコ is offline  
Old 10/31/2013, 12:26   #6
 
elite*gold: 0
Join Date: Aug 2013
Posts: 18
Received Thanks: 0
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.
tolska is offline  
Old 10/31/2013, 13:32   #7

 
マルコ's Avatar
 
elite*gold: 1329
Join Date: Jun 2009
Posts: 1,873
Received Thanks: 960
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.
マルコ is offline  
Reply


Similar Threads Similar Threads
Warehouseman password Show website
02/21/2013 - Metin2 Private Server - 1 Replies
Hello! The prehistoric site on Metin2 want to put a php function to show the warehouse password. The character code like cloth. Current login.php: <div id="con-top">Játékos panel</div> <div id="con-mid"> <?PHP if(isset($_GET) && $_GET=="aktivieren" && isset($_GET) && !empty($_GET)) {
Protect in ein Protect rein setzten ?
10/08/2011 - Minecraft - 3 Replies
Moin, Ich hab meine ganze Stadt protectet mit worldguard und möchte dort kleine protects rein machen damit dort USER bauen können. Geht das oder wie könnte ich das machen?
website change password
05/18/2011 - EO PServer Hosting - 2 Replies
This is not working it says your password has been changed but it dosent load it in the DB whats wrong? <?php include('config.php'); ?> <?php if($_POST){ mysql_select_db($mydbacc); $userid = trim($_POST); $password=trim($_POST);



All times are GMT +2. The time now is 07:11.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.