Posting Code Fragments On A Shared Server: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
(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)")
 
(No difference)

Latest revision as of 19:06, 24 October 2024

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)