rameshfaj Posted March 14, 2007 Share Posted March 14, 2007 I wanted the php files in my computer to be protected.If someone copies them and use in different machines,how can the php code find that the code is running in nextmachine. Is there any idea,that I delete the files using the unlink() method,when they are stored/run in next machine. Link to comment https://forums.phpfreaks.com/topic/42643-deleting-the-pages/ Share on other sites More sharing options...
zq29 Posted March 14, 2007 Share Posted March 14, 2007 There's no 100% secure way about this. A simple method could be to run a check like this at the top of each page: <?php if(md5(phpinfo()) != $my_servers_hash) die(); ?> Although, if I knew PHP, I could just remove that line, although you could encrypt the your files as well so that they are extremely difficult to decode. You'd also have to update the hash should you make any local config changes... Link to comment https://forums.phpfreaks.com/topic/42643-deleting-the-pages/#findComment-206967 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.