1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I protect my site?

Discussion in 'Web Design' started by alcor805, Aug 22, 2010.

  1. alcor805

    alcor805 Newbie

    Joined:
    Jan 26, 2010
    Messages:
    38
    Likes Received:
    3
    Location:
    Chatsworth, CA
    I have a new site that's html and javascript based. To my disgust I can save the html file and the site maintains full functionality from my desktop offline. I've copyrighted my web site. How can I protect my site?
     
  2. corbin2

    corbin2 Registered Member

    Joined:
    Jan 16, 2010
    Messages:
    66
    Likes Received:
    41
    I'm sorry, but you can't. Anyone who wants to copy your site can do it in no time.
     
  3. LyNHS

    LyNHS Regular Member

    Joined:
    Jul 20, 2010
    Messages:
    282
    Likes Received:
    98
    Occupation:
    Google AdSense
    Home Page:
    If it's static HTML and JavaScript, then I agree - you literally can't protect it completely.

    If you're looking for protection, then you're going to have to go into more advanced server side programming like PHP.

    Server side programming means that the scripting takes place on the server, rather than the browser - meaning it's not easily copied. PHP can still be copied, but if you have certain permissions in place and you allow your PHP scripts to be executed by your server only, you can't go wrong.

    There is services available that allows some protection of static pages. For example, your JavaScript can only be executed and reached by another webpage that's on your domain, and you domain only.

    But, they can still copy it and tweak it. If you're looking for something where they can't access certain parts of your website, then just research .htpasswd; it's basically password protection - but that only works for apache (linux) servers and I'm unaware of the microsoft equivalent!

    Hope that help,
    All the best,
    Lynn.
     
  4. Emkiyu[A]

    Emkiyu[A] Registered Member

    Joined:
    Jun 25, 2009
    Messages:
    71
    Likes Received:
    5
    Occupation:
    AP
    Location:
    -_-?
    I don't think you can. People can just rip your site completely by using ripping software like HTTrack.
     
  5. mward

    mward Newbie

    Joined:
    Oct 19, 2010
    Messages:
    43
    Likes Received:
    3
    Occupation:
    manager
    Location:
    uk
    there is away of hashing the code its not readable, search on javascript hash html. its pretty hard to stop people nicking the html, but with the use of javascript and ajax you can make it more difficult. but if someone has firebug they are gonna get in.