<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Restrict_access_via_htaccess_via_ipaddress</id>
		<title>Restrict access via htaccess via ipaddress - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Restrict_access_via_htaccess_via_ipaddress"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Restrict_access_via_htaccess_via_ipaddress&amp;action=history"/>
		<updated>2026-06-04T10:53:01Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Restrict_access_via_htaccess_via_ipaddress&amp;diff=657&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==Restrict access via htaccess via ipaddress==  This can be a very effective way to protect your Wordpress administrator directory. Any other directory in public_html can be p...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Restrict_access_via_htaccess_via_ipaddress&amp;diff=657&amp;oldid=prev"/>
				<updated>2014-04-14T13:25:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Restrict access via htaccess via ipaddress==  This can be a very effective way to protect your Wordpress administrator directory. Any other directory in public_html can be p...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Restrict access via htaccess via ipaddress==&lt;br /&gt;
&lt;br /&gt;
This can be a very effective way to protect your Wordpress administrator directory. Any other directory in public_html can be protected in the same way. This method only works if you have a static IP address assigned to you. Anyone attempting to browse such directories using a different IP Address will get a 403 Forbidden error. &lt;br /&gt;
&lt;br /&gt;
Lets restrict access to the wp-admin/ folder in wordpress&lt;br /&gt;
&lt;br /&gt;
 vim /path/to/wordpress/wp-admin/.htaccess&lt;br /&gt;
&lt;br /&gt;
Now lets restrict all access but one ipaddress&lt;br /&gt;
&lt;br /&gt;
 Order Deny,Allow&lt;br /&gt;
 Deny from all&lt;br /&gt;
 Allow from 100.100.100.100&lt;br /&gt;
&lt;br /&gt;
In the example above the 100.100.100.100 is my public ipaddress.&lt;br /&gt;
&lt;br /&gt;
You can get your public facing ipaddress by visiting http://ifconfig.me&lt;br /&gt;
&lt;br /&gt;
*      Optional: You can enter partial IP Addresses, such as, 100.100.100. This allows access to a range of addresses.&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>