<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Password protect wordpress blog</title>
	<atom:link href="http://www.spiders-design.co.uk/password-protect-wordpress-blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/</link>
	<description>Masters of the web</description>
	<lastBuildDate>Fri, 03 Sep 2010 17:38:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Peter</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-247</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 03 Sep 2010 17:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-247</guid>
		<description>I have implemented this for my website blog and it works fine. Does this also disable rss feeds, considering they may not be able to access it with the incorrect password but if you still get rss, then why bother installing?</description>
		<content:encoded><![CDATA[<p>I have implemented this for my website blog and it works fine. Does this also disable rss feeds, considering they may not be able to access it with the incorrect password but if you still get rss, then why bother installing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bruce</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-233</link>
		<dc:creator>bruce</dc:creator>
		<pubDate>Mon, 30 Aug 2010 20:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-233</guid>
		<description>to quote bullwinkle... this time for sure!

here is a simple chunk of code that will allow you to password protect your wordpress blog... simply insert at the top of your header.php file, and change the password per your specifications:

&lt;?php
    session_start();

    $the_current_password = &#039;whatever&#039;;

        // or...
        // $the_current_password = file(&quot;get_password_from_db.php&quot;);

    $login_form =&lt;&lt;&lt;EOF
&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;div align=&quot;center&quot; id=&quot;form&quot; class=&quot;form&quot; style=&quot;margin-top:100px; margin:0 auto; width:350px; background-color:#ccc; color:#666&quot;&gt;&lt;FONT SIZE=&quot;-1&quot; FACE=&quot;Arial, Helvetica&quot;&gt;&lt;br&gt;please enter password&lt;/FONT&gt;
    &lt;form action=&quot;http://url_of_your_blog/index.php&quot; method=&quot;post&quot;&gt;
        &lt;input type=&quot;password&quot; name=&quot;password&quot;&gt;&lt;br&gt;&lt;br&gt;
        &lt;input type=&quot;submit&quot; value=&quot;login to the ________ blog&quot;&gt;&lt;br&gt;&#160;
    &lt;/form&gt;
&lt;/div&gt;

EOF;

    if (isset($_REQUEST[&#039;password&#039;])) {
        $password = $_REQUEST[&#039;password&#039;];
        if($password != $the_current_password) {
            echo &quot;$login_form&quot;;
            exit();
        } else {
            $_SESSION[&#039;authenticated&#039;] = &quot;yup&quot;;
        }

    } else if (!(isset($_SESSION[&#039;authenticated&#039;]) &amp;&amp; $_SESSION[&#039;authenticated&#039;] == &#039;yup&#039;)) {
            echo &quot;$login_form&quot;;
            exit();

    }

?&gt;</description>
		<content:encoded><![CDATA[<p>to quote bullwinkle&#8230; this time for sure!</p>
<p>here is a simple chunk of code that will allow you to password protect your wordpress blog&#8230; simply insert at the top of your header.php file, and change the password per your specifications:</p>
<p>&lt;?php<br />
    session_start();</p>
<p>    $the_current_password = &#8216;whatever&#8217;;</p>
<p>        // or&#8230;<br />
        // $the_current_password = file(&#8220;get_password_from_db.php&#8221;);</p>
<p>    $login_form =&lt;&lt;&lt;EOF<br />
&lt;br&gt;&lt;br&gt;&lt;br&gt;<br />
&lt;div align=&#8221;center&#8221; id=&#8221;form&#8221; class=&#8221;form&#8221; style=&#8221;margin-top:100px; margin:0 auto; width:350px; background-color:#ccc; color:#666&#8243;&gt;&lt;FONT SIZE=&#8221;-1&#8243; FACE=&#8221;Arial, Helvetica&#8221;&gt;&lt;br&gt;please enter password&lt;/FONT&gt;<br />
    &lt;form action=&#8221;http://url_of_your_blog/index.php&#8221; method=&#8221;post&#8221;&gt;<br />
        &lt;input type=&#8221;password&#8221; name=&#8221;password&#8221;&gt;&lt;br&gt;&lt;br&gt;<br />
        &lt;input type=&#8221;submit&#8221; value=&#8221;login to the ________ blog&#8221;&gt;&lt;br&gt;&nbsp;<br />
    &lt;/form&gt;<br />
&lt;/div&gt;</p>
<p>EOF;</p>
<p>    if (isset($_REQUEST['password'])) {<br />
        $password = $_REQUEST['password'];<br />
        if($password != $the_current_password) {<br />
            echo &#8220;$login_form&#8221;;<br />
            exit();<br />
        } else {<br />
            $_SESSION['authenticated'] = &#8220;yup&#8221;;<br />
        }</p>
<p>    } else if (!(isset($_SESSION['authenticated']) &amp;&amp; $_SESSION['authenticated'] == &#8216;yup&#8217;)) {<br />
            echo &#8220;$login_form&#8221;;<br />
            exit();</p>
<p>    }</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bruce</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-232</link>
		<dc:creator>bruce</dc:creator>
		<pubDate>Mon, 30 Aug 2010 20:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-232</guid>
		<description>sorry... here is a corrected version of a simple chunk of code to insert at the top of your header.php file that accomplishes overall password protection without requiring any additional files:

&lt;?php
    session_start();

    $the_current_password = &#039;whatever&#039;;

        // or...
        // $the_current_password = file(&quot;get_password_from_db.php&quot;);

    $login_form =&lt;&lt;&lt;EOF
&lt;br&amp;rt;&lt;br&amp;rt;&lt;br&amp;rt;
&lt;div align=&quot;center&quot; id=&quot;form&quot; class=&quot;form&quot; style=&quot;margin-top:100px; margin:0 auto; width:350px; background-color:#ccc; color:#666&quot;&amp;rt;&lt;FONT SIZE=&quot;-1&quot; FACE=&quot;Arial, Helvetica&quot;&amp;rt;&lt;br&amp;rt;please enter password&lt;/FONT&amp;rt;
    &lt;form action=&quot;http://url_of_your_blog/index.php&quot; method=&quot;post&quot;&amp;rt;
        &lt;input type=&quot;password&quot; name=&quot;password&quot;&amp;rt;&lt;br&amp;rt;&lt;br&amp;rt;
        &lt;input type=&quot;submit&quot; value=&quot;login to the ________ blog&quot;&amp;rt;&lt;br&amp;rt;&#160;
    &lt;/form&amp;rt;
&lt;/div&amp;rt;

EOF;

    if (isset($_REQUEST[&#039;password&#039;])) {
        $password = $_REQUEST[&#039;password&#039;];
        if($password != $the_current_password) {
            echo &quot;$login_form&quot;;
            exit();
        } else {
            $_SESSION[&#039;authenticated&#039;] = &quot;yup&quot;;
        }

    } else if (!(isset($_SESSION[&#039;authenticated&#039;]) &amp;&amp; $_SESSION[&#039;authenticated&#039;] == &#039;yup&#039;)) {
            echo &quot;$login_form&quot;;
            exit();

    }

?&amp;rt;</description>
		<content:encoded><![CDATA[<p>sorry&#8230; here is a corrected version of a simple chunk of code to insert at the top of your header.php file that accomplishes overall password protection without requiring any additional files:</p>
<p>&lt;?php<br />
    session_start();</p>
<p>    $the_current_password = &#8216;whatever&#8217;;</p>
<p>        // or&#8230;<br />
        // $the_current_password = file(&#8220;get_password_from_db.php&#8221;);</p>
<p>    $login_form =&lt;&lt;&lt;EOF<br />
&lt;br&amp;rt;&lt;br&amp;rt;&lt;br&amp;rt;<br />
&lt;div align=&#8221;center&#8221; id=&#8221;form&#8221; class=&#8221;form&#8221; style=&#8221;margin-top:100px; margin:0 auto; width:350px; background-color:#ccc; color:#666&#8243;&amp;rt;&lt;FONT SIZE=&#8221;-1&#8243; FACE=&#8221;Arial, Helvetica&#8221;&amp;rt;&lt;br&amp;rt;please enter password&lt;/FONT&amp;rt;<br />
    &lt;form action=&#8221;http://url_of_your_blog/index.php&#8221; method=&#8221;post&#8221;&amp;rt;<br />
        &lt;input type=&#8221;password&#8221; name=&#8221;password&#8221;&amp;rt;&lt;br&amp;rt;&lt;br&amp;rt;<br />
        &lt;input type=&#8221;submit&#8221; value=&#8221;login to the ________ blog&#8221;&amp;rt;&lt;br&amp;rt;&nbsp;<br />
    &lt;/form&amp;rt;<br />
&lt;/div&amp;rt;</p>
<p>EOF;</p>
<p>    if (isset($_REQUEST['password'])) {<br />
        $password = $_REQUEST['password'];<br />
        if($password != $the_current_password) {<br />
            echo &#8220;$login_form&#8221;;<br />
            exit();<br />
        } else {<br />
            $_SESSION['authenticated'] = &#8220;yup&#8221;;<br />
        }</p>
<p>    } else if (!(isset($_SESSION['authenticated']) &amp;&amp; $_SESSION['authenticated'] == &#8216;yup&#8217;)) {<br />
            echo &#8220;$login_form&#8221;;<br />
            exit();</p>
<p>    }</p>
<p>?&amp;rt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bruce</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-231</link>
		<dc:creator>bruce</dc:creator>
		<pubDate>Mon, 30 Aug 2010 20:18:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-231</guid>
		<description>here&#039;s a chunk of code that can be inserted at the beginning of the wordpress header file, that does not require any additional files:


&lt;?php
	session_start();

	$the_current_password = &#039;whatever&#039;;

		// or...
		// $the_current_password = file(&quot;get_password_from_db.php&quot;);

	$login_form =&lt;&lt;&lt;EOF

please enter password
	
		
		&#160;
	


EOF;

	if (isset($_REQUEST[&#039;password&#039;])) {
		$password = $_REQUEST[&#039;password&#039;];
		if($password != $the_current_password) {
			echo &quot;$login_form&quot;;
			exit();
		} else {
			$_SESSION[&#039;authenticated&#039;] = &quot;yup&quot;;
		}

	} else if (!(isset($_SESSION[&#039;authenticated&#039;]) &amp;&amp; $_SESSION[&#039;authenticated&#039;] == &#039;yup&#039;)) {
			echo &quot;$login_form&quot;;
			exit();

	}

?&gt;
</description>
		<content:encoded><![CDATA[<p>here&#8217;s a chunk of code that can be inserted at the beginning of the wordpress header file, that does not require any additional files:</p>
<p>&lt;?php<br />
	session_start();</p>
<p>	$the_current_password = &#039;whatever&#039;;</p>
<p>		// or&#8230;<br />
		// $the_current_password = file(&quot;get_password_from_db.php&quot;);</p>
<p>	$login_form =&lt;&lt;&lt;EOF</p>
<p>please enter password</p>
<p>		&nbsp;</p>
<p>EOF;</p>
<p>	if (isset($_REQUEST['password'])) {<br />
		$password = $_REQUEST['password'];<br />
		if($password != $the_current_password) {<br />
			echo &#8220;$login_form&#8221;;<br />
			exit();<br />
		} else {<br />
			$_SESSION['authenticated'] = &#8220;yup&#8221;;<br />
		}</p>
<p>	} else if (!(isset($_SESSION['authenticated']) &amp;&amp; $_SESSION['authenticated'] == &#8216;yup&#8217;)) {<br />
			echo &#8220;$login_form&#8221;;<br />
			exit();</p>
<p>	}</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Password Protect WordPress Plugin</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-229</link>
		<dc:creator>Password Protect WordPress Plugin</dc:creator>
		<pubDate>Mon, 30 Aug 2010 12:26:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-229</guid>
		<description>[...] Protect WordPress Plugin     &#124;  30. August 2010 &#124;  Autor: Karl-Heinz     Daniel Chatfield´s Password Protect WordPress sch&#252;tzt WordPress mit einem Passwort gegen fremde Blicke. Ideal f&#252;r zum Beispiel ein [...]</description>
		<content:encoded><![CDATA[<p>[...] Protect WordPress Plugin     |  30. August 2010 |  Autor: Karl-Heinz     Daniel Chatfield´s Password Protect WordPress sch&#252;tzt WordPress mit einem Passwort gegen fremde Blicke. Ideal f&#252;r zum Beispiel ein [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Password Protect WordPress Plugin</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-228</link>
		<dc:creator>Password Protect WordPress Plugin</dc:creator>
		<pubDate>Mon, 30 Aug 2010 12:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-228</guid>
		<description>[...] Chatfield´s Password Protect WordPress sch&#252;tzt WordPress mit einem Passwort gegen fremde Blicke. Ideal f&#252;r zum Beispiel ein [...]</description>
		<content:encoded><![CDATA[<p>[...] Chatfield´s Password Protect WordPress sch&#252;tzt WordPress mit einem Passwort gegen fremde Blicke. Ideal f&#252;r zum Beispiel ein [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-221</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 28 Aug 2010 15:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-221</guid>
		<description>Hi we anticipate a plugin release in the next few months.
New features will include:
Search engine Bot access
Ip deny / allow list
If there is something you think we should include then please comment it.</description>
		<content:encoded><![CDATA[<p>Hi we anticipate a plugin release in the next few months.<br />
New features will include:<br />
Search engine Bot access<br />
Ip deny / allow list<br />
If there is something you think we should include then please comment it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ava</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-219</link>
		<dc:creator>ava</dc:creator>
		<pubDate>Sat, 28 Aug 2010 09:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-219</guid>
		<description>Hi, 

I tried to create a log-out page with your code: 

&lt;?php
session_destroy();
echo &lt;&lt;

Placed the logout.php page in the same directory as login.php but I get this error message when I log-out:

Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in /home/content/33/5045933/html/coach/wp-content/themes/rich_corp/logout.php on line 2

Please advise on how I can resolve this.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>I tried to create a log-out page with your code: </p>
<p>&lt;?php<br />
session_destroy();<br />
echo &lt;&lt;</p>
<p>Placed the logout.php page in the same directory as login.php but I get this error message when I log-out:</p>
<p>Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in /home/content/33/5045933/html/coach/wp-content/themes/rich_corp/logout.php on line 2</p>
<p>Please advise on how I can resolve this.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ava</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-218</link>
		<dc:creator>ava</dc:creator>
		<pubDate>Sat, 28 Aug 2010 09:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-218</guid>
		<description>Hi! 

I have been trying to find a log-in option for my WP site and I stumbled-upon this site. 

This works great! Just have to figure out how to edit the background but other than that it works fine!

If you manage to turn this into a wordpress plug-in soon please do let me know. :)

Thank you sooo much!</description>
		<content:encoded><![CDATA[<p>Hi! </p>
<p>I have been trying to find a log-in option for my WP site and I stumbled-upon this site. </p>
<p>This works great! Just have to figure out how to edit the background but other than that it works fine!</p>
<p>If you manage to turn this into a wordpress plug-in soon please do let me know. <img src='http://www.spiders-design.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thank you sooo much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kazna</title>
		<link>http://www.spiders-design.co.uk/password-protect-wordpress-blog/comment-page-1/#comment-213</link>
		<dc:creator>Kazna</dc:creator>
		<pubDate>Fri, 27 Aug 2010 15:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.spiders-design.co.uk/password-protect-wordpress-blog/#comment-213</guid>
		<description>Does not work for me :( I&#039;ve edited header.php and created login.php but it just shows a blank page, no redirecting at all. I&#039;m using WP multisite.</description>
		<content:encoded><![CDATA[<p>Does not work for me <img src='http://www.spiders-design.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  I&#8217;ve edited header.php and created login.php but it just shows a blank page, no redirecting at all. I&#8217;m using WP multisite.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
