Notoriouswow Posted April 19, 2010 Share Posted April 19, 2010 Hey everyone, I have a quick question.... I have a super simple footer.php that includes credits towards me.... (Running a CMS) and a lot of people have abused the fact that it is REALLY easy to change it. Is their anyway to make it so when you modify it whatsoever the whole website won't work or it displays an error or something... I have a config.php that could work with this real nicely... Thanks, NotoriousWoW Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/ Share on other sites More sharing options...
-Karl- Posted April 19, 2010 Share Posted April 19, 2010 ioncube encoder? Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/#findComment-1044403 Share on other sites More sharing options...
Cory94bailly Posted April 19, 2010 Share Posted April 19, 2010 I've always thought of this.. If you want to keep the script open-source but require the footer, you could possibly encode your credits but put a variable that is required to run the site? Make it more complicated than what I said.. Make it seem like it's something normal in your code but it secretly exits the script or something... Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/#findComment-1044412 Share on other sites More sharing options...
Notoriouswow Posted April 19, 2010 Author Share Posted April 19, 2010 Cory, its a good idea.... but I can't really figure out how to make it work correctly to the point were you would be screwed over if you changed it lol Any ideas for the code? Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/#findComment-1044431 Share on other sites More sharing options...
ignace Posted April 19, 2010 Share Posted April 19, 2010 Is your CMS open-source? Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/#findComment-1044450 Share on other sites More sharing options...
dotMoe Posted April 19, 2010 Share Posted April 19, 2010 Well; if you aren't creative enough to program a self destruct sequence within your code, if the footer has been changed. It makes me wonder how effective your CMS is. You can within your classes somwhere, or a file thats included everywhere; check the md5 of the footer, and if it doesnt match a certain number it can kill the script with die();. People will then have to sit there and search to see where they can reverse that. You can also hardcode it into your templating engine, if you are using one in your cms. Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/#findComment-1044454 Share on other sites More sharing options...
ignace Posted April 19, 2010 Share Posted April 19, 2010 ... program a self destruct sequence within your code ... It makes me wonder how effective your CMS is. LOL $kiloton = PHP_INT_MAX; $cms->nuke($kiloton);//leave no man alive .. mushroom, mushroom .. badger, badger, badger, .. http://www.badgerbadgerbadger.com/ Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/#findComment-1044457 Share on other sites More sharing options...
dotMoe Posted April 19, 2010 Share Posted April 19, 2010 $kiloton = PHP_INT_MAX; $cms->nuke($kiloton);//leave no man alive .. mushroom, mushroom .. badger, badger, badger, .. http://www.badgerbadgerbadger.com/ See.. creative www.numantis.com/boom Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/#findComment-1044460 Share on other sites More sharing options...
Mchl Posted April 19, 2010 Share Posted April 19, 2010 You can within your classes somwhere, or a file thats included everywhere; check the md5 of the footer, and if it doesnt match a certain number it can kill the script with die();. People will then have to sit there and search to see where they can reverse that. You can also hardcode it into your templating engine, if you are using one in your cms. Security through obscurity. You gain nothing except confusing code. Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/#findComment-1044541 Share on other sites More sharing options...
Notoriouswow Posted April 19, 2010 Author Share Posted April 19, 2010 I did that at first, but it never really worked right.... Thanks for the criticism though, glad to know your here to help. *Cough* Quote Link to comment https://forums.phpfreaks.com/topic/198966-how-to-make-something-uneditable/#findComment-1044912 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.