Solved

Password protecting a webpage

Posted on 2009-03-30
3
280 Views
Last Modified: 2013-12-12
Hi,
I would like to set up a page in Wordpress for a website.  It will sit on the server like:

http://mysite.com.au/wordpress  for example

I would like to password protect this section of the site, so if someone trys to go to this folder they will be prompted for a username and password.

I would like to know the best way to do this, and whether or not is possible to set up different usernames and passwords for different users or if I can only have one username and password?
0
Comment
Question by:Amanda Watson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

Assisted Solution

by:QPR
QPR earned 100 total points
ID: 24025603
depends, what is the operating system on the server and how much access do you have to set folder properties?
Were this windows I would say you would remove anonymous access from the folder that contains the page(s) and create users (or a group) that will be allowed access. Turn on integrated authentication and they will be prompted for a username/password.

Otherwise if want to put the protection into your code itself then create a login page and check the values against those you have stored (in a database of text file (risky)) if they are verified then set a cookie to say logged_on = true (or something) and redirect them to the page they want to go.

On the protected page check for a cookie value (logged_on) and if not true then redirect to the login page.
0
 
LVL 35

Accepted Solution

by:
torimar earned 400 total points
ID: 24025610
Yes, it is possible to set this up with different usernames and passwords.

Use the .htaccess/.htpasswd method.

Here are introductions:
http://weavervsworld.com/docs/other/passprotect.html
http://www.html-password.net
0
 
LVL 11

Author Comment

by:Amanda Watson
ID: 24025751
Thanks for the response.
I think torimars solution of the Htpasswd Generator is what I was after.
I have also discovered that wordpress actually have some plugins for this!
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Getting to know the threat landscape in which DDoS has evolved, and making the right choice to get ourselves geared up to defend against  DDoS attacks effectively. Get the necessary preparation works done and focus on Doing the First Things Right.
A look at what happened in the Verizon cloud breach.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question