Как защитить свой проект на Php?

  • Автор темы gugi
  • Дата начала
G

GOsha

Гость
#3
Zend
Хотя я встречал и модификации типа
Код:
<html>
<form name="form" method="post" action="index.php">
<table width="600" border="1" cellpadding="5" cellspacing="2" bordercolor="#0033CC">
<tr>
<td width="500" bgcolor="#66CC99"><input name="string" size=60></td>
<td width="100" bgcolor="#FF9999"><input name="" type="submit" value="MD5"></td>
</tr>
</table>
</form>
</html>
<?PHP
Echo $GLOBALS['string']."<br>";
$trans = array(
' ' => '\x20',
'!' => '\x21',
'"' => '\x22',
'#' => '\x23',
'$' => '\x24',
'%' => '\x25',
'&' => '\x26',
'\'' => '\x27',
'(' => '\x28',
')' => '\x29',
'*' => '\x2A',
'+' => '\x2B',
',' => '\x2C',
'-' => '\x2D',
'.' => '\x2E',
'/' => '\x2F',
'0' => '\x30',
'1' => '\x31',
'2' => '\x32',
'3' => '\x33',
'4' => '\x34',
'5' => '\x35',
'6' => '\x36',
'7' => '\x37',
'8' => '\x38',
'9' => '\x39',
':' => '\x3A',
';' => '\x3B',
'<' => '\x3C',
'=' => '\x3D',
'>' => '\x3E',
'?' => '\x3F',
'@' => '\x40',
'A' => '\x41',
'B' => '\x42',
'C' => '\x43',
'D' => '\x44',
'E' => '\x45',
'F' => '\x46',
'G' => '\x47',
'H' => '\x48',
'I' => '\x49',
'J' => '\x4A',
'K' => '\x4B',
'L' => '\x4C',
'M' => '\x4D',
'N' => '\x4E',
'O' => '\x4F',
'P' => '\x50',
'Q' => '\x51',
'R' => '\x52',
'S' => '\x53',
'T' => '\x54',
'U' => '\x55',
'V' => '\x56',
'W' => '\x57',
'X' => '\x58',
'Y' => '\x59',
'Z' => '\x5A',
'[' => '\x5B',
'\\' => '\x5C',
']' => '\x5D',
'^' => '\x5E',
'_' => '\x5F',
'`' => '\x60',
'a' => '\x61',
'b' => '\x62',
'c' => '\x63',
'd' => '\x64',
'e' => '\x65',
'f' => '\x66',
'g' => '\x67',
'h' => '\x68',
'i' => '\x69',
'j' => '\x6A',
'k' => '\x6B',
'l' => '\x6C',
'm' => '\x6D',
'n' => '\x6E',
'o' => '\x6F',
'p' => '\x70',
'q' => '\x71',
'r' => '\x72',
's' => '\x73',
't' => '\x74',
'u' => '\x75',
'v' => '\x76',
'w' => '\x77',
'x' => '\x78',
'y' => '\x79',
'z' => '\x7A',
'{' => '\x7B',
'|' => '\x7C',
'}' => '\x7D',
'~' => '\x7E',
'‚' => '\x82',
'„' => '\x84',
'‹' => '\x8B',
'‘' => '\x91',
'’' => '\x92',
'“' => '\x93',
'”' => '\x94',
'–' => '\x96',
'—' => '\x97',
'›' => '\x9B',
'§' => '\xA7',
'Ё' => '\xA8',
'©' => '\xA9',
'«' => '\xAB',
'­' => '\xAD',
'ё' => '\xB8',
'№' => '\xB9',
'»' => '\xBB',
'А' => '\xC0',
'Б' => '\xC1',
'В' => '\xC2',
'Г' => '\xC3',
'Д' => '\xC4',
'Е' => '\xC5',
'Ж' => '\xC6',
'З' => '\xC7',
'И' => '\xC8',
'Й' => '\xC9',
'К' => '\xCA',
'Л' => '\xCB',
'М' => '\xCC',
'Н' => '\xCD',
'О' => '\xCE',
'П' => '\xCF',
'Р' => '\xD0',
'С' => '\xD1',
'Т' => '\xD2',
'У' => '\xD3',
'Ф' => '\xD4',
'Х' => '\xD5',
'Ц' => '\xD6',
'Ч' => '\xD7',
'Ш' => '\xD8',
'Щ' => '\xD9',
'Ъ' => '\xDA',
'Ы' => '\xDB',
'Ь' => '\xDC',
'Э' => '\xDD',
'Ю' => '\xDE',
'Я' => '\xDF',
'а' => '\xE0',
'б' => '\xE1',
'в' => '\xE2',
'г' => '\xE3',
'д' => '\xE4',
'е' => '\xE5',
'ж' => '\xE6',
'з' => '\xE7',
'и' => '\xE8',
'й' => '\xE9',
'к' => '\xEA',
'л' => '\xEB',
'м' => '\xEC',
'н' => '\xED',
'о' => '\xEE',
'п' => '\xEF',
'р' => '\xF0',
'с' => '\xF1',
'т' => '\xF2',
'у' => '\xF3',
'ф' => '\xF4',
'х' => '\xF5',
'ц' => '\xF6',
'ч' => '\xF7',
'ш' => '\xF8',
'щ' => '\xF9',
'ъ' => '\xFA',
'ы' => '\xFB',
'ь' => '\xFC',
'э' => '\xFD',
'ю' => '\xFE',
'я' => '\xFF'
);
echo strtr($GLOBALS['string'],$trans);
?>
Это кодер. переводит твою строку в подобие. \xC6\xA7\xF8
Вспомогательный инструмент для тебя.
Т.к. PHP нормально поймет
Код:
Echo "\xC6\xA7\xF8";
Я так где-то видел копики.