<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Protect_and_lock_down_Wordpress</id>
		<title>Protect and lock down Wordpress - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Protect_and_lock_down_Wordpress"/>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Protect_and_lock_down_Wordpress&amp;action=history"/>
		<updated>2026-04-15T03:08:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Protect_and_lock_down_Wordpress&amp;diff=3743&amp;oldid=prev</id>
		<title>Caleb.williamson: /* Windows Server */</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Protect_and_lock_down_Wordpress&amp;diff=3743&amp;oldid=prev"/>
				<updated>2017-10-13T18:32:30Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Windows Server&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 18:32, 13 October 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; RewriteCond %{REQUEST_URI} ^(.*)?xmlrpc\.php(.*)$ [OR]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; RewriteCond %{REQUEST_URI} ^(.*)?xmlrpc\.php(.*)$ [OR]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RewriteCond %{REQUEST_URI} ^(.*)?admin-ajax\.php(.*)$ [OR]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;RewriteCond %{REQUEST_URI} ^(.*)?admin-ajax\.php(.*)$ [OR]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Caleb.williamson</name></author>	</entry>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Protect_and_lock_down_Wordpress&amp;diff=3003&amp;oldid=prev</id>
		<title>Kaseya: Created page with &quot;__FORCETOC__  ==How to Protect WordPress== ===Windows Server=== #Edit or Create a file named .htaccess within the directory of your WordPress installation  (yes, the file star...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Protect_and_lock_down_Wordpress&amp;diff=3003&amp;oldid=prev"/>
				<updated>2017-02-16T05:46:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;__FORCETOC__  ==How to Protect WordPress== ===Windows Server=== #Edit or Create a file named .htaccess within the directory of your WordPress installation  (yes, the file star...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
==How to Protect WordPress==&lt;br /&gt;
===Windows Server===&lt;br /&gt;
#Edit or Create a file named .htaccess within the directory of your WordPress installation  (yes, the file starts with .)&lt;br /&gt;
#Place this code in the .htaccess file (this example assumes your IP is 123.123.123.123).  Click to see your [http://hostek.com/ip IP].&lt;br /&gt;
 RewriteEngine On&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?xmlrpc\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]&lt;br /&gt;
RewriteCond %{REQUEST_URI} ^(.*)?admin-ajax\.php(.*)$ [OR]&lt;br /&gt;
 RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;br /&gt;
 RewriteRule .* http://0.0.0.0/Please_check_your_htaccess_file_or_contact_your_hosting_provider_for_assistance [R=301]&lt;br /&gt;
 &lt;br /&gt;
NOTE: If you need to allow access from more than 1 IP replace the REMOTE_ADDR line with this example and update accordingly&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123$&lt;br /&gt;
&lt;br /&gt;
'''What this does:''' The above rule locks down the Wordpress dashboard, as well as the ability for the wordpress api ( xmlrpc ) to be attacked. The xml-rpc file essentially allows for outside applications to &amp;quot;interact&amp;quot; and &amp;quot;communicate&amp;quot; to your wordpress site in ways you may not want to. The reason for locking down the WordPress dashboard is because Wordpress is widely targeted around the world for potential vulnerabilities. Attackers will attempt to find common vulnerabilities known for each version of WordPress and will attempt to get in and compromise your site.&lt;br /&gt;
&lt;br /&gt;
The 'admin-ajax.php' file is being locked down because this file is commonly targeted by attackers to hurt your site and server performance. This file is very resource heavy as it takes up a lot of CPU. It is very uncommon for this to ever be used as it's a wordpress heartbeat API. If you do need this file enabled then I'd recommend locking it down to specific IP Addresses.&lt;br /&gt;
&lt;br /&gt;
===Linux Server===&lt;br /&gt;
#Edit or Create a file named .htaccess within the directory of your WordPress installation  (yes, the file starts with .)&lt;br /&gt;
#Place this code in the .htaccess file (this example assumes your IP is 123.123.123.123).  Click to see your [http://hostek.com/ip IP].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;FilesMatch 'wp-login|admin-ajax.php|wp-admin|xmlrpc.php'&amp;gt;&lt;br /&gt;
  RewriteEngine On&lt;br /&gt;
  RewriteCond %{REMOTE_ADDR} !123.3123.123.123&lt;br /&gt;
  RewriteRule .* http://0.0.0.0/Please_check_your_htaccess_file_or_contact_your_hosting_provider_for_assistance [R=301]&lt;br /&gt;
&amp;lt;/FilesMatch&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: If you need to allow access from more than 1 IP replace the REMOTE_ADDR line with this example and update accordingly&lt;br /&gt;
 RewriteCond %{REMOTE_ADDR} !123.123.123.123&lt;br /&gt;
&lt;br /&gt;
'''What this does:''' The above rule locks down the Wordpress dashboard, as well as the ability for the wordpress api ( xmlrpc ) to be attacked. The xml-rpc file essentially allows for outside applications to &amp;quot;interact&amp;quot; and &amp;quot;communicate&amp;quot; to your wordpress site in ways you may not want to. The reason for locking down the WordPress dashboard is because Wordpress is widely targeted around the world for potential vulnerabilities. Attackers will attempt to find common vulnerabilities known for each version of WordPress and will attempt to get in and compromise your site.&lt;br /&gt;
&lt;br /&gt;
The 'admin-ajax.php' file is being locked down because this file is commonly targeted by attackers to hurt your site and server performance. This file is very resource heavy as it takes up a lot of CPU. It is very uncommon for this to ever be used as it's a wordpress heartbeat API. If you do need this file enabled then I'd recommend locking it down to specific IP Addresses.&lt;br /&gt;
&lt;br /&gt;
[[Category:WordPress]]&lt;/div&gt;</summary>
		<author><name>Kaseya</name></author>	</entry>

	</feed>