Can I Password Protect Wordpress via htaccess?

Asked by:
Joe_Shiki / 62 Points
Time:
2013-09-20 6:30 am EST
Category:
Wordpress
Hits:
484
Hi,

One of my teachers is taking some students on an overseas trip, and I would like to make a wordpress blog site for the pics and articles that would be visible only to certain people, such as parents and teachers.

Ideally, I would like to protect the site with one password. That way, I could give that password to other teachers and parents who wish to access or view the site.

I would like to allow those with the password to be able to download pictures if they wish, but I do not want anyone to be able to link to pictures (by that I mean being able to put the link to the picture in the browser bar and see the picture without putting in the password.)

Is this something that I need to use plugins for? Or should I password protect the folder somehow?

Thanks in advance for any help or advice.

--Joe

To ask this user for more information, please first login.

To submit an answer, please login.

For example, could I use htaccess password protect on a folder with wordpress installed inside?

Like this:
http://davidwalsh.name/password-protect-directory-using-htaccess
Joe_Shiki
62 Points
2013-09-20 09:17 am EST

Best answer chosen by User

0

johnpaulb-whh2
Staff
12,339 Points
2013-09-20 4:50 pm EST
Hello Joe_Shiki,

Thank you for your question. Yes, you can password protect Wordpress using the .htacess file, here is a helpful guide on how to accomplish that.

There is also a password protect option in cPanel, that adds the code for your .htaccess for you. But keep in mind, sometimes this does not work; depending how your .htaccess is coded, it can interfere with the functionality.

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul

To submit a comment on this answer, please first login.

Hi John Paul,
Thanks. I installed wordpress into a folder in my domain, then I used cPanel to password protect it. This seems to work well.
Anyone who wants to see the blog has to put in the password and username. It also is impossible to link to the pictures without going through the same password page, so it seems to have worked.

I can recommend this method to anyone who needs to limit the viewers of their blog to a certain group of people.
Joe_Shiki
62 Points

2013-09-22 8:34 am EST
Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 757-416-6627 Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}