The ultimate clean/secure function

后端 未结 7 2469
忘掉有多难
忘掉有多难 2020-11-22 03:11

I have a lot of user inputs from $_GET and $_POST... At the moment I always write mysql_real_escape_string($_GET[\'var\'])..

I

7条回答
  •  情书的邮戳
    2020-11-22 03:45

    May I suggest to install "mod_security" if you're using apache and have full access to server?!
    It did solve most of my problems. However don't rely in just one or two solutions, always write secure code ;)
    UPDATE Found this PHP IDS (http://php-ids.org/); seems nice :)

提交回复
热议问题