1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Certain posts give forbidden errors

Discussion in 'Troubleshooting and Problems' started by mjp, Oct 3, 2013.

  1. mjp

    mjp Well-Known Member

    Here's one for you. One of my users found it.

    This error:

    The following error occurred:
    You don't have permission to access /forums/notes.25/save-draft on this server.​

    happens if a post contains the phrase "porn movies." But I see it doesn't error out here.

    Thing is, I have no word censorship defined, so I don't get it...

    (I can't even post a link to this thread in my forum without getting the error.)
  2. Amaury

    Amaury Well-Known Member

    Have you checked your server error logs?
  3. Jeremy

    Jeremy Well-Known Member

    This is soudning like a server configuration since it appears you are receiving a 403 Forbidden Error. I would contact your host to see if you have any on your account.
    mjp likes this.
  4. Mike

    Mike XenForo Developer Staff Member

    Yeah, sounds like a mod_security or similar sort of limit.
    mjp likes this.
  5. mjp

    mjp Well-Known Member

    The server config is blocking a database insert of a specific phrase? Sounds ridiculous, but I suppose anything is possible these days.


    I'm moving the forum to Digital Ocean anyway, so I'm not inclined to suffer any back and forth with the current host to get to the bottom of it.
  6. Mike

    Mike XenForo Developer Staff Member

    The server config is actually blocking the request before it even reaches XenForo (or PHP in general).
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Incidentally, I have found it to be fairly common that offending server rules like this specifically flag the referrer or request URI (which contains the offending words as part of the thread title) in JSON requests. For example, if you can't edit a post due to this error then you might find that it works when you use the full edit form (as opposed to quick edit which is JSON).

    But yeah... server problem.

Share This Page