Jump to content

xss cross site scripting - your opinion wanted!


phrenic

Recommended Posts

hey all. i've developed several web apps in my time, but i really havent hammered down the best way to handle xss attacks. this seems like the most obvious solution to me, but maybe im wrong. please give any input that comes to mind.

 

  • use html_entities on all values in $_POST and $_GET
  • when inserting data into mysql always use mysql_real_escape_string()
  • when retrieving data from mysql its already xss safe

 

thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.