Error 406 when trying to log in to wordpress site

  • Answered
When someone tries to log in to my wordpress site, they face this error:
Error 406 - Not Acceptable

Generally a 406 error is caused because a request has been blocked by Mod Security. If you believe that your request has been blocked by mistake please contact the web site owner.
This happns when user tries to use pop-up login form in upper right corner of wordpress website. But if the user goes directly to /wp-login.php, she can log in normally. I understand this problem is related to mod_security and I can resolve it by white-listing an IP. But I want to know if there's a way to resolve this issue without turning mod_security off or white-listing a lot of IPs.
Thanks in advance for your help.
Hello Khd, Sorry for the problem with the 406 error that you're seeing as a result of Mod Security. There is a way that you may consider that requires that you modify your .htaccess file. You can limit access by referrer. Click on the link, and use the information to create the .htaccess modifications to secure your WordPress site. I hope this helps to answer your question, please let us know if you require any further assistance. Regards, Arnel C.