Make a Password Protected WordPress blog

Cate: Wordpress
.!.

This is a very easy way you can made a private blog metioned by Zeo.

Simply, add the below code in your header.php template file before the HTML start tag:

< ?php auth_redirect(); ?>

By doing this, the visitors who entry your blog, will first redirect to the wordpress login page, which means the visitors need a user name and password to be able to access your blog.

Share and Enjoy:

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • 豆瓣
  • email
  • Haohao
  • StumbleUpon
  • Twitter

Random Posts

advertisement

10 Comments

  1. Sparanoid
    Date: Oct 03 06
    Time: 2:51 am

    wow,, so Ez, but it's not good for SEO

  2. Xing
    Date: Oct 03 06
    Time: 3:17 am

    What is SEO stand for?

  3. Sparanoid
    Date: Oct 03 06
    Time: 3:01 pm

    Search Engine Optimization, if ues this redirect function, google(search engine) may not index it

  4. Xing
    Date: Oct 03 06
    Time: 5:21 pm

    By using the google sitemap plugin, the google search engine should still be able to track blog. But i don't have a time to prove it.

  5. skyreal
    Date: Oct 05 06
    Time: 4:42 pm

    Use password to protect your blog means you don't wnat unauthorised visitors, so there is no point to optimise the SEO~~

  6. Xing
    Date: Oct 05 06
    Time: 6:23 pm

    yes, I agree with skyreal. But there is still a case that you just want visitor to register to your blog. And I don't think it is a wise idea to do that.

  7. jeany
    Date: Oct 05 06
    Time: 11:18 pm

    Do u have the holiday?..
    How about u these days?..
    I stay at home for long time..Wil be leave on OCT 25,
    I will going to hangzhou then to shanghai,
    .. go to shool in the end
    next month, I start studying....>-

  8. Xing
    Date: Oct 06 06
    Time: 5:30 am

    To jeany

    Do u have the holiday?..
    How about u these days?..
    I stay at home for long time..Wil be leave on OCT 25,
    I will going to hangzhou then to shanghai,
    .. go to shool in the end
    next month, I start studying....>-

    I just had 2 weeks break.
    Have a good time in Quanzhou?
    Are you going to Hangzhou and Shanghai by yourself?

  9. jeany
    Date: Oct 09 06
    Time: 2:29 am

    Oh ,so short..
    Yes,I have . Today, I go to junjun's school .I'm in xiamen now..
    Yes, I will travelling to there..
    ..and seeing my old friends..

  10. jeany
    Date: Oct 10 06
    Time: 3:23 am

    哈哈 偶又来拉。。看看你

94

Add Your Comment

emoticons

Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter.