-6

Possible Duplicate:
How to protect my source code when deployed?

Can you give me some suggestions on how to secure a piece of code (credits, footer) from being removed?

It's just a text saying "Made by", bla bla... If a user removes that piece of code, I want to force it back on the place or to display a warning message.

Community
  • 1
  • 1
Pixel
  • 104
  • 1
  • 10

1 Answers1

-1

How about populating a div using javascript? Most users that will hack your theme/code won't understand where its coming from. Try something like appending the div to your body tag so even the div isn't written in html of your code. This might prevent a lot of efforts to remove the credits. What are you building exactly? What is the context? Is it a theme for a cms?

Laurence Tuck
  • 410
  • 2
  • 8
  • 30
  • Another idea is to request an encrypted variable from your own server that is required for your script to work. If they don't match then the whole thing falls over. What type of licence will you release your script with and what do you hope to gain by enforcing credits? – Laurence Tuck Jun 30 '12 at 10:57
  • Script will be completely free to use and edit, but the only requirement is keeping credits. I hope my script will get more users then. Can you give me some link to read more about your idea? – Pixel Jun 30 '12 at 11:05
  • No code example, just a brain 'fart' at this point. Keeping the credits isn't going to help you at all unless there is a hyperlink to your site where you could at least benefit from traffic. Does your script use javascript at all? – Laurence Tuck Jun 30 '12 at 11:13
  • Credits are actually "Powered by" hyperlink. Yes, script uses javascript/jquery. – Pixel Jun 30 '12 at 11:23