<?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: 406 Not Acceptable and Apache mod_security</title>
	<atom:link href="http://stellify.net/406-not-acceptable-and-apache-mod_security/feed/" rel="self" type="application/rss+xml" />
	<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/</link>
	<description>On web design, technology, the Philippines, and more.</description>
	<lastBuildDate>Sun, 25 Jul 2010 03:49:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Yves David</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-55426</link>
		<dc:creator>Yves David</dc:creator>
		<pubDate>Mon, 29 Jun 2009 16:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-55426</guid>
		<description>I found a way around the 406 error.  The company hosting 
my web site would not turn down the security module 
and I need the accented character.  

I figured that  % could be replaced by the word &quot;percent&quot; 
 then I realized that the word could be a valid part of the
 string so I purposeley missspelled it. It became &quot;pxrcent&quot;
from there it&#039;a easy.

JavaScript in the web page
 // Standard urlencoding
Descr=escape(document.form1.Description.innerText);
//  Ã‰ becomes %C9

//replacing the % wi9th the text
Description=Descr.replace(/%/g,&quot;pxrcent&quot;);
//  %C9 becomes pxrcentC9

In the server the PHP code is:
$Description=urldecode(str_replace(&quot;pxrcent&quot;,&quot;%&quot;,$_GET[&#039;Description&#039;]));

well you get the idea...</description>
		<content:encoded><![CDATA[<p>I found a way around the 406 error.  The company hosting<br />
my web site would not turn down the security module<br />
and I need the accented character.  </p>
<p>I figured that  % could be replaced by the word &#8220;percent&#8221;<br />
 then I realized that the word could be a valid part of the<br />
 string so I purposeley missspelled it. It became &#8220;pxrcent&#8221;<br />
from there it&#8217;a easy.</p>
<p>JavaScript in the web page<br />
 // Standard urlencoding<br />
Descr=escape(document.form1.Description.innerText);<br />
//  Ã‰ becomes %C9</p>
<p>//replacing the % wi9th the text<br />
Description=Descr.replace(/%/g,&#8221;pxrcent&#8221;);<br />
//  %C9 becomes pxrcentC9</p>
<p>In the server the <acronym title="Pre-Hypertext Processing">PHP</acronym> code is:<br />
$Description=urldecode(str_replace(&#8220;pxrcent&#8221;,&#8221;%&#8221;,$_GET['Description']));</p>
<p>well you get the idea&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yves David</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-55420</link>
		<dc:creator>Yves David</dc:creator>
		<pubDate>Mon, 29 Jun 2009 13:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-55420</guid>
		<description>Finding the offending string(character) was easy in my case it was the escape sequence &quot;%E9 &quot;  which stands for Ã‰ . after testing a few things I realized that all escape sequence from my Ajax HTTPxrequest generate the 406 error.   .....


................... and I am stuck here</description>
		<content:encoded><![CDATA[<p>Finding the offending string(character) was easy in my case it was the escape sequence &#8220;%E9 &#8221;  which stands for Ã‰ . after testing a few things I realized that all escape sequence from my Ajax HTTPxrequest generate the 406 error.   &#8230;..</p>
<p>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;. and I am stuck here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Mulligan</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-38946</link>
		<dc:creator>Mike Mulligan</dc:creator>
		<pubDate>Thu, 20 Nov 2008 13:51:44 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-38946</guid>
		<description>Want to know something even odder?  I am getting a 406 just recently as well, but here&#039;s the kicker...  Only in Firefox.  My girlfriend&#039;s IE is fine, and my Safari is fine, but Firefox is losing access to my site one directory at a time...

Even odder, these directories exist, and not just USED to work, but alternate in availability...  Sometimes they will work, sometimes they will not.  Not all at once either, individually, and at random moments...

Still Mod_Security?</description>
		<content:encoded><![CDATA[<p>Want to know something even odder?  I am getting a 406 just recently as well, but here&#8217;s the kicker&#8230;  Only in Firefox.  My girlfriend&#8217;s <acronym title="Internet Explorer">IE</acronym> is fine, and my Safari is fine, but Firefox is losing access to my site one directory at a time&#8230;</p>
<p>Even odder, these directories exist, and not just USED to work, but alternate in availability&#8230;  Sometimes they will work, sometimes they will not.  Not all at once either, individually, and at random moments&#8230;</p>
<p>Still Mod_Security?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Batfastad</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-31932</link>
		<dc:creator>Batfastad</dc:creator>
		<pubDate>Tue, 13 May 2008 10:43:46 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-31932</guid>
		<description>Fantastic information!
I was having this problem with the latest version of phpBB (v3.0.1) when trying to edit overall_header.html in the subsilver2 theme

- I made the change to phpBB&#039;s .htaccess
- Edited the template successfully
- And then commented out the .htaccess change in case it compromised server security somehow

Hope this helps someone out.... http://www.phpbb.com/community/viewtopic.php?f=46&amp;t=919575&amp;p=5456835</description>
		<content:encoded><![CDATA[<p>Fantastic information!<br />
I was having this problem with the latest version of phpBB (v3.0.1) when trying to edit overall_header.html in the subsilver2 theme</p>
<p>- I made the change to phpBB&#8217;s .htaccess<br />
- Edited the template successfully<br />
- And then commented out the .htaccess change in case it compromised server security somehow</p>
<p>Hope this helps someone out&#8230;. <a href="http://www.phpbb.com/community/viewtopic.php?f=46&amp;t=919575&amp;p=5456835" rel="nofollow">http://www.phpbb.com/community/viewtopic.php?f=46&amp;t=919575&amp;p=5456835</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-31063</link>
		<dc:creator>Christopher</dc:creator>
		<pubDate>Sun, 06 Apr 2008 18:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-31063</guid>
		<description>Had the same problem when I created an image, uploaded it to my site and tried to load it... I tried .gif, .jpg and .png, all failed with the Not Acceptable error.

Even more strangely, existing .png, .gif and .jpg files worked fine, so I&#039;m not discounting that something was up with Irfanview which was corrupting the file headers somehow - but I don&#039;t have time to investigate. The images work fine in Explorer and in Firefox, so I just applied your fix - works perfectly. Now I have time to go off and research the problem and (hopefully) fix it... Cheers!</description>
		<content:encoded><![CDATA[<p>Had the same problem when I created an image, uploaded it to my site and tried to load it&#8230; I tried .gif, .jpg and .png, all failed with the Not Acceptable error.</p>
<p>Even more strangely, existing .png, .gif and .jpg files worked fine, so I&#8217;m not discounting that something was up with Irfanview which was corrupting the file headers somehow &#8211; but I don&#8217;t have time to investigate. The images work fine in Explorer and in Firefox, so I just applied your fix &#8211; works perfectly. Now I have time to go off and research the problem and (hopefully) fix it&#8230; Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-30477</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 23 Mar 2008 00:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-30477</guid>
		<description>Thanks very much for your support :-)</description>
		<content:encoded><![CDATA[<p>Thanks very much for your support :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jillian</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-26997</link>
		<dc:creator>Jillian</dc:creator>
		<pubDate>Sun, 20 Jan 2008 11:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-26997</guid>
		<description>Thank you, you just saved my day!</description>
		<content:encoded><![CDATA[<p>Thank you, you just saved my day!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Friesen {dot} ca &#187; Blog Archive &#187; New Flock and 406 Errors</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-13767</link>
		<dc:creator>Jason Friesen {dot} ca &#187; Blog Archive &#187; New Flock and 406 Errors</dc:creator>
		<pubDate>Wed, 26 Sep 2007 19:32:30 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-13767</guid>
		<description>[...] I looked at a number of posted fixes, with no joy. The problem is with Apache&#8217;s mod_security plugin.&#160; At last I resorted to my web host&#8217;s tech support.&#160; Within a couple of hours they cheerfully fixed the problem, and I was away.&#160; Hurrah! [...]</description>
		<content:encoded><![CDATA[<p>[...] I looked at a number of posted fixes, with no joy. The problem is with Apache&#8217;s mod_security plugin.&nbsp; At last I resorted to my web host&#8217;s tech support.&nbsp; Within a couple of hours they cheerfully fixed the problem, and I was away.&nbsp; Hurrah! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sheri</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-8211</link>
		<dc:creator>Sheri</dc:creator>
		<pubDate>Sat, 07 Jul 2007 00:55:46 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-8211</guid>
		<description>I used the SecFilterEngine method so that I could print the $_POST variables where I located the invalid characters.  I cleaned up the code, removed the .htaccess modification and everything was fixed.  BUT I would never have known that it was an invalid character problem had I not found your site.  Thanks a lot!!</description>
		<content:encoded><![CDATA[<p>I used the SecFilterEngine method so that I could print the $_POST variables where I located the invalid characters.  I cleaned up the code, removed the .htaccess modification and everything was fixed.  BUT I would never have known that it was an invalid character problem had I not found your site.  Thanks a lot!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erick</title>
		<link>http://stellify.net/406-not-acceptable-and-apache-mod_security/#comment-3787</link>
		<dc:creator>Erick</dc:creator>
		<pubDate>Fri, 06 Apr 2007 18:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://stellify.net/hacking-away/406-not-acceptable-and-apache-mod_security/#comment-3787</guid>
		<description>Thank you!! woww :)</description>
		<content:encoded><![CDATA[<p>Thank you!! woww :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
