Jump to content
bt.ionut

Copyright

Recommended Posts

În primul rând acea bucat? de cod va trebui s? fie ascuns?. (base64?)

Poate ai putea ca în bucata aia de cod s? setezi o variabil? booleana true ?i s? faci o verificare tocmai la final, dac? nu e setat?, exit ?i redirect. Poate po?i verifica ?i dimensiunea/md5-ul fi?ierului copyright.php (s? verifici dac? a modificat).

În orice caz, cineva destul de de?tept ?i-l va putea altera oricum.

Link to comment
Share on other sites

Uite o metoda simpla:


<?php

function strb($start, $end, $str)
{
$x = explode($start, $str);
$x = explode($end, $x[2]);
$x = $x[0];

return $x;
}

$file = file_get_contents(basename($_SERVER["PHP_SELF"]));
$content = strb("<div id='copyright'>", "</div>", $file);

if($content == "© bt.ionut")
echo "OK!\n";
else
echo "Copyright removed!\n";

?>
<html>
<head>
<title>Test</title>
</head>
<body>
<div id='copyright'>© bt.ionut</div>
</body>
</html>

Cu putina obfuscare l-ai putea chinui pe unu fara experienta care vrea sa-ti fure pagina.

  • Downvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...