[wp-testers] Weird behaviour with Ajax and .htaccess

azrin azrin at bbs.nu
Fri Mar 28 19:47:50 GMT 2008


it literally means that any post if not mozilla is forbidden and does not 
specify get only posts. you should only use this for wp-comments.php as 
that's where they hit.


----- Original Message ----- 
From: "due chiacchiere" <duechiacchiere at gmail.com>
To: <wp-testers at lists.automattic.com>
Sent: Saturday, March 29, 2008 1:19 AM
Subject: [wp-testers] Weird behaviour with Ajax and .htaccess


> Hello guys, just upgraded to 2.5 RC-3, and noticed a strange behaviour 
> with my .htaccess settings. In order to block suspicious agents, I added 
> these lines to my .htaccess
>
> # Safari accepts everything but hopefully is not a spammer
> RewriteCond %{REQUEST_METHOD} POST
> RewriteCond %{HTTP_USER_AGENT} !^Mozilla/(.*)
> RewriteCond %{HTTP_ACCEPT} ^\*/\*$
> RewriteRule (.*) - [F]
>
> Everything was working fine up to 2.3.x, but now Ajax cannot connect to 
> the server, if I activate these lines. Suggestions?
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers 



More information about the wp-testers mailing list