<?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>HELM, WHM/cPanel, Windows, Linux, web hosting talk, Search Engine Optimization, PHP, ASP discussion blog &#187; Wordpress and ModSecurity problem</title>
	<atom:link href="http://blog.webhostingdiscussion.net/tag/wordpress-and-modsecurity-problem/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.webhostingdiscussion.net</link>
	<description>Blog is dedicated for web hosting talk, SEO, programming issues, Databases, server administration etc.</description>
	<lastBuildDate>Wed, 01 Feb 2012 10:06:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress and mod_security2 issues</title>
		<link>http://blog.webhostingdiscussion.net/site-and-server-security/wordpress-and-mod_security2-issues.htm</link>
		<comments>http://blog.webhostingdiscussion.net/site-and-server-security/wordpress-and-mod_security2-issues.htm#comments</comments>
		<pubDate>Sun, 29 Nov 2009 05:24:19 +0000</pubDate>
		<dc:creator>Kailash</dc:creator>
				<category><![CDATA[Site and Server Security]]></category>
		<category><![CDATA[Bypass ModSecurity rules for Wordpress]]></category>
		<category><![CDATA[unable to post due to mod_security]]></category>
		<category><![CDATA[Wordpress and ModSecurity issues]]></category>
		<category><![CDATA[Wordpress and ModSecurity problem]]></category>
		<category><![CDATA[Wordpress and mod_security issues]]></category>
		<category><![CDATA[Wordpress insert image issue with ModSecurity]]></category>
		<category><![CDATA[Wordpress not working with mod_security]]></category>
		<category><![CDATA[Wordpress upload image problem due to ModSecurity]]></category>

		<guid isPermaLink="false">http://blog.webhostingdiscussion.net/?p=18192</guid>
		<description><![CDATA[ModSecurity is an open source web application firewall. This helps to prevent attacks on websites, SQL injection, command execution via browser etc. However, this may break some application installed in your website. With ModSecurity2, you can not bypass any rule by ID from your .htaccess file. If your WordPress hosting provider has enabled mod_security with [...]<h3>Related Posts</h3>

No related posts.
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.webhostingdiscussion.net%2Fsite-and-server-security%2Fwordpress-and-mod_security2-issues.htm"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.webhostingdiscussion.net%2Fsite-and-server-security%2Fwordpress-and-mod_security2-issues.htm&amp;source=webhosttalk&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>ModSecurity is an open source web application firewall. This helps to prevent attacks on websites, SQL injection, command execution via browser etc. However, this may break some application installed in your website. With ModSecurity2, you can not bypass any rule by ID from your .htaccess file.</p>
<p>If your WordPress hosting provider has enabled mod_security with Apache, you may face some problem to post topic, upload images, insert images in the post etc. Since ModSecurity2 does not allow to bypass rules by ID via .htaccess, you will have to contact your <a title="Web Hosting, Windows Hosting, cPanel Hosting, Unlimited domain reseller hosting" href="http://www.accuwebhosting.com" target="_blank"><strong>web hosting</strong></a> provider to bypass some rules for your website. ModSecurity provides facility to bypass rules based on the location. You will require to create global whitelist configuration file to bypass certain rules based on the location.</p>
<p>Recently, I faced problem to upload and insert images in the post. After reading some websites, I found some global rules which I bypassed some ModSecurity rules using global whitelist configuration file which fixed my problem. The rules that I bypassed are as follow (I have put space before LocationMatch and /LocationMatch. Remove that space in your configuration file):</p>
<p><code><strong><br />
&lt; LocationMatch "/wp-admin/post.php"&gt;<br />
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904<br />
SecRuleRemoveById phpids-17<br />
SecRuleRemoveById phpids-20<br />
SecRuleRemoveById phpids-21<br />
SecRuleRemoveById phpids-30<br />
SecRuleRemoveById phpids-61<br />
&lt; /LocationMatch&gt;</strong></code></p>
<p><strong>&lt; LocationMatch &#8220;/wp-admin/admin-ajax.php&#8221;&gt;<br />
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904<br />
SecRuleRemoveById phpids-17<br />
SecRuleRemoveById phpids-20<br />
SecRuleRemoveById phpids-21<br />
SecRuleRemoveById phpids-30<br />
SecRuleRemoveById phpids-61<br />
&lt; /LocationMatch&gt;</strong></p>
<p><strong>&lt; LocationMatch &#8220;/wp-admin/page.php&#8221;&gt;<br />
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904<br />
SecRuleRemoveById phpids-17<br />
SecRuleRemoveById phpids-20<br />
SecRuleRemoveById phpids-21<br />
SecRuleRemoveById phpids-30<br />
SecRuleRemoveById phpids-61<br />
&lt; /LocationMatch&gt;</strong></p>
<p><strong>&lt; LocationMatch &#8220;/wp-admin/options.php&#8221;&gt;<br />
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904<br />
SecRuleRemoveById phpids-17<br />
SecRuleRemoveById phpids-20<br />
SecRuleRemoveById phpids-21<br />
SecRuleRemoveById phpids-30<br />
SecRuleRemoveById phpids-61<br />
&lt; /LocationMatch&gt;</strong></p>
<p><strong>&lt; LocationMatch &#8220;/wp-admin/theme-editor.php&#8221;&gt;<br />
SecRuleRemoveById 300015 300016 300017 950907 950005 950006 960008 960011 960904<br />
SecRuleRemoveById phpids-17<br />
SecRuleRemoveById phpids-20<br />
SecRuleRemoveById phpids-21<br />
SecRuleRemoveById phpids-30<br />
SecRuleRemoveById phpids-61<br />
&lt; /LocationMatch&gt;</strong></p>
<p><strong>&lt; LocationMatch &#8220;/wp-includes/&#8221;&gt;<br />
SecRuleRemoveById 960010 960012 950006<br />
SecRuleRemoveById phpids-17<br />
SecRuleRemoveById phpids-20<br />
SecRuleRemoveById phpids-21<br />
SecRuleRemoveById phpids-30<br />
SecRuleRemoveById phpids-61<br />
&lt; /LocationMatch&gt;</strong></p>
<p>Hope this will help others who are facing the similar problem in their WordPress blog with mod_security.</p>
<p><strong>Kailash Aghera</strong></p>
<h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.webhostingdiscussion.net/site-and-server-security/wordpress-and-mod_security2-issues.htm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

