Posting Code Fragments On A Shared Server

From Littledamien Wiki
Revision as of 19:06, 24 October 2024 by Video8 (talk | contribs) (Created page with "== Issue == Submitting a code fragment on a hosting service such as Namecheap causes a security error when posting things like SQL statements. 403 Forbidden error results. == Workaround == Update `.htaccess` on the site with the following: <syntaxhighlight> <IfModule mod_security.c> SecRuleEngine Off SecRequestBodyAccess Off </IfModule> </syntaxhighlight> Source: [https://stackoverflow.com/a/72703813 Namecheap problem when posting data from html form] (StackOverflow)")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Issue[edit]

Submitting a code fragment on a hosting service such as Namecheap causes a security error when posting things like SQL statements. 403 Forbidden error results.

Workaround[edit]

Update .htaccess on the site with the following:

<IfModule mod_security.c>
SecRuleEngine Off
SecRequestBodyAccess Off
</IfModule>

Source: Namecheap problem when posting data from html form (StackOverflow)