Support » Fixing WordPress » 403 error after leaving comment

  • Resolved lemuria

    (@lemuria)


    After leaving a comment on a post, if you click any link at all on the page you’re taken to a 403 error page that says:

    “Forbidden
    You don’t have permission to access / on this server.”

    The only similar issue I’ve found is the one on this page suggesting that the problem might be the word “curl” in posts. I did find that word a few places, but replacing it with  curl  didn’t have an effect.

    I also tried disabling all the comment-related plugins, but that didn’t do anything.

    Any ideas? Does this seem like something I’ll need to talk to the host about?

Viewing 1 replies (of 1 total)
  • Thread Starter lemuria

    (@lemuria)

    Solved. There was a line in an .htaccess file in the root that said:

    RewriteCond %{HTTP_REFERER} ^(http://)?(www\.)?.*(-|.)cpa(-|.).*$ [NC,OR]

    I commented this out and now it works.

    I still don’t quite get it, though, since that line is supposed to deny referrers containing the keyword in the URL, but “cpa” isn’t in the site address.

    Is there somewhere in the comment submission process that text containing “cpa” is inserted into the URL?

Viewing 1 replies (of 1 total)
  • The topic ‘403 error after leaving comment’ is closed to new replies.