Jun 28 2005

If you get a 403 error when posting to your Wordpress blog…

Published by jaseone at 3:15 pm under Information Technology, Wordpress

Then it is most likely do to your web host implementing mod_security in Apache, which can be configured to scan GET & POST requests made to the server and in more recent times because of things like the phpBB worm the settings have become more locked down disallowing words like curl and wget as they can be used maliciously by hackers with specially crafted requests to download code to your server in order to exploit it.

So to work around it you need to use a non breaking space between the word and the word after it so it gets through the mod_security filter but still displays properly on your blog, for example the code block below:

*/10 * * * * wget -q –spider http://www.yoursite.com/wordpress/phone2blog.php

Would throw a 403 error if I hadn’t used   between wget and -q, so if need be view the source of this page and see how to work around the 403 errors.

3 responses so far

Trackback URI | Comments RSS

Leave a Reply