What are the best practices for avoiding xss attacks in a PHP site

前端 未结 20 2574
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 02:34

I have PHP configured so that magic quotes are on and register globals are off.

I do my best to always call htmlentities() for anything I am outputing that is derive

20条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 03:07

    It is difficult to implement a thorough sql injection/xss injection prevention on a site that doesn't cause false alarms. In a CMS the end user might want to use

提交回复
热议问题