Providing Code to Users That is Unchangable

Discussion in 'Programming' started by meamrussian, Sep 27, 2007.

  1. #1
    Hi,

    I'm trying to create a "tool" that some people can use to put in their own website or blog.

    Let's just say for now it's just providing an image. I would like to give them the code that includes a link back to my website. Let's say I give them this code:

    <center><img src="imageurlhere"><br><a href="http://mysite.com">My Site</a></center>
    Code (markup):
    Now, how do I make it so that people that use my code can't just take out my url to my website? Is there a way to do this? Maybe with javascript or PHP? If they do, maybe the whole code won't work? How do I make sure my link isn't deleted?

    Thanks.
     
    meamrussian, Sep 27, 2007 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You cannot make sure that a link isnt remove. If someone wants rid of it they will be able to do so.

    In your image example you could write your url on the image itself which would be untouchable but if you associated a link with it then this could be removed.
     
    AstarothSolutions, Sep 28, 2007 IP