Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#40491 closed defect (bug) (worksforme)

403 Forbidden when posting source code

Reported by: eifbian's profile Eifbian Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7.3
Component: Editor Keywords:
Focuses: Cc:


Hello, I was writing a simple code:

if(n == x)

and after clicking on the preview button I got a 403 Forbidden code message. The problem seems to appear in just this part of the code:


I found out that the next options:

if ( x =
if( x =
if( x=
if ( x =

give no problem at all. To highlight code I am using SyntaxHighlighter Evolved 3.2.1, but deactivating it (and all the other plugins I have) didn't solve the issue.

Change History (1)

#1 @dd32
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Hi @Eifbian,

Unfortunately this doesn't sound like WordPress's fault, but rather, your server configuration.

Your server most likely has a security module installed which is blocking the request, as it believes it contains malicious javascript or matches a known attack.
You may wish to contact your host and ask if they have mod_security or a similar module installed which would block you posting the given text to your site.

Note: See TracTickets for help on using tickets.