I made this:
if i find "<", i will change it to <.
if i find ">", i will change it to >.
<?php
function something($string){
$search = array('<', '>');
$replace = array('<', '>');
return str_replace($search, $replace, $string);
}
$string = '<script> code here </script>';
echo something($string);
?>
Everithing is all right. now, for example, hacker is tring to Hack my web page. he will
convert "<script> code </script>" to hex or base64 or Decimal. Will my script work in this situation? its interesting for me...
Character Encoding Calculators Web pages:
XSS (Cross Site Scripting) Cheat Sheet (on the bottom of the page)
Surrogate Pair Calculator etc.


Sign In
Create Account


Back to top









