<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>htaccess &#8211; Blackbams Blog</title>
	<atom:link href="https://blog.blackbam.at/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.blackbam.at</link>
	<description>development - digital arts - internet</description>
	<lastBuildDate>Wed, 05 Oct 2011 17:27:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>How to hide a WordPress project by using an IP-Filter</title>
		<link>https://blog.blackbam.at/2011/03/31/how-to-hide-a-wordpress-project-by-using-an-ip-filter/</link>
					<comments>https://blog.blackbam.at/2011/03/31/how-to-hide-a-wordpress-project-by-using-an-ip-filter/#respond</comments>
		
		<dc:creator><![CDATA[Blackbam]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 19:20:02 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP Scripts]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[protection]]></category>
		<guid isPermaLink="false">https://blog.blackbam.at/?p=1232</guid>

					<description><![CDATA[Development projects should not be visible for public internet visitors in a lot of cases. Imagine you develop a project for a large company and the Google robots get you for some reason. There will be a lot of visitors who surf on your unfinished blog or website. There are a lot of Maintenence Plugins [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Development projects should not be visible for public internet visitors in a lot of cases. Imagine you develop a project for a large company and the Google robots get you for some reason. There will be a lot of visitors who surf on your unfinished blog or website. There are a lot of Maintenence Plugins for WordPress, like <a href="http://wordpress.org/extend/plugins/wp-maintenance-mode/">WP Maintenance Mode</a>, but this is not so good for development, as you have to be logged in all the time.</p>
<p></p>
<p>A good way to protect you from unwanted visitors is using an IP-Filter. You can do this using PHP or a configuration-file for your webserver. I like the PHP way, because it is possible kind of server. Now only you or somebody using your IP-Address will be able to see the site. Everybody else is forwarded to another site. Just copy and paste the following code at the <strong>beginning of your index.php</strong>-file in the WordPress root folder on the server:</p>
<div class="code_title">Using PHP</div>
<pre lang="php">
/*** The IP-protectection for development time ****/
$userip = ($_SERVER['REMOTE_ADDR']); // The IP of the visitor
$ip = '127.0.13.37'; // Enter your IP here

if ($userip != $ip) {
	header("Location:http://www.company.old/"); // the URL of another site, take Google for example
} else{
	// do nothing, go on to wordpress
}
</pre>
<p>Another way is using a server configuration, like .htaccess on Apache:</p>
<div class="code_title">Apache example</div>
<pre lang="text">
Order deny,allow
deny from all
allow from 94.136.31.33
</pre>
<p>Somebody who knows your IP-Address still can get in, so if security is really important, you should add some more security measures.</p>
<p><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fblog.blackbam.at%2F2011%2F03%2F31%2Fhow-to-hide-a-wordpress-project-by-using-an-ip-filter%2F&#038;title=How%20to%20hide%20a%20WordPress%20project%20by%20using%20an%20IP-Filter" data-a2a-url="https://blog.blackbam.at/2011/03/31/how-to-hide-a-wordpress-project-by-using-an-ip-filter/" data-a2a-title="How to hide a WordPress project by using an IP-Filter"><img src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded>
					
					<wfw:commentRss>https://blog.blackbam.at/2011/03/31/how-to-hide-a-wordpress-project-by-using-an-ip-filter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
