Protect web content

Discussion in 'Web Design, HTML And CSS' started by webdevelopa, Feb 21, 2007.

  1. webdevelopa

    webdevelopa New Member

    Joined:
    Dec 1, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Hi All,

    I am a web developer and I am lately becoming fairly security conscious.

    So two questions for you and any help appreciated.

    1)I have my hesitations about my web code being revealed to everyone through the "view page source" feature of web browsers. Apparently the source review may reveal quite a few hints that affect security. Is there a way to prevent people from seeing this?

    2)Being a web developer (especially PHP) I would like to know how I can restrict my programs to run on specific domains only. In this way if someone steals my code he can not deploy it on his server.


    Thanks for your help all

    peter
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Well you cannot fully prevent the viewing of the HTML source for a web page, any experienced web user may get the source even if you block right-click on you page, or things like that.
     
  3. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    The best way would be

    1. Have a validation from your server and then only the scripts should work and have the script work but then if they have stolen the script this is not good.
    2. Have some data send to your server so you know who has stolen it (but remember you cannot do anything but knowing) unless it has been done for some client who helps you.
     
  4. webdevelopa

    webdevelopa New Member

    Joined:
    Dec 1, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Its something like the page is generated with the JS and so the source is not a straigt forward one. Something like the GMail inbox source page.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice