403 Forbidden if input contains “script”

女生的网名这么多〃 提交于 2019-12-08 15:43:05

Namecheap has probably configured mod_security rules on their servers so to block posts which contain tags as these tags being allowed to be posted back to a webpage opens the door to very serious client side scripting vulnerabilities if the web app doesn't handle this correctly. If the post can even make it to php (which in your case it can't) you should be able to call htmlspecialchars or htmlentities on it to filter these out. If Namecheap is doing this for you and this is a problem then there's not much you can do other than changing hosts as shared hosting doesn't allow you any say over server configuration.

I had this problem, I needed to use tags in the form I was submitting in the admin system (embedding a google adsense ad).

To fix I edited the .htaccess file and added the line SecFilterEngine Off

I only needed to do this temporarily to get the job done & turn it back on when I'm done.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!