Ways I can protect my site excluding XSS and Sql injection?

前端 未结 6 1319
Happy的楠姐
Happy的楠姐 2021-02-10 00:38


So, members of my website can post topics, replies, comments, edit them and so on. I always use htmlspecialchars and addslashes for html inputs to

6条回答
  •  情歌与酒
    2021-02-10 01:07

    You should use mysql_real_escape_string() for SQL, not addslashes. (Assuming you are using MySQL)

提交回复
热议问题