Grow your CSS skills. Land your dream job.

Protect templates or CRC check in JS

  • # June 29, 2011 at 8:19 am

    A lot of my clients ask me to design a template and hand it to them so they can launch their own website. But I’ve seen so many times that they abuse it, they change the images and sell it to somebody else. That got me thinking, how can we protect our templates?
    Encrypting the HTML is not good since they need to edit the text. Can we protect images? My idea was that we could insert an script into the page that checks the CRC of some of the images. If they edit the image files, CRC changes and the script does not allow the page to render. (JS disable is not an issue)
    How can we do that?

    # June 29, 2011 at 12:42 pm

    Do you have a contract?

    # June 30, 2011 at 4:43 pm

    Solving this programmaticly is a lot easier then dealing with contracts and stuff.

    # June 30, 2011 at 4:51 pm

    Ummmmm pretty much the worst thing I’ve ever heard. If you have a client and don’t have a contract, you’re up shit creek.

    If you’re talking about selling a template to multiple people, there should be terms and conditions attached to that template.

    # June 30, 2011 at 5:49 pm

    I have to agree with TheDoc, having a contract in place is important.. if you choose to also go a step further and protect your work programmatically you can but I’d still recomend you get a contract drawn up.

    # June 30, 2011 at 8:05 pm

    can’t they just remove the scripts that check the page?

    # July 1, 2011 at 6:47 am

    There’s a contract, but I raised the question as a coding challenge. Why enable them to steal in the first place?
    About script removing, what we could do is that mix the JS code for checking images with a little code that renders a part of the page (footer for example, most of the time it doesn’t change from page to page) and then uglify the code. If they remove the script entirely the page looks crippled. JS disabled users are negligible, 1% are they? Who cares for that.

    # July 7, 2011 at 11:36 am

    any ideas?

    # July 7, 2011 at 12:04 pm

    Certainly doesn’t sound like a ‘coding challenge’. Sounds like a ‘tell me how to fuck over my clients.’

    People are always going to find a way to steal your stuff. It is impossible to defend against. Instead of worrying about people stealing your stuff, you can spend time getting more clients, thus negating any potential lost revenue.

    # July 7, 2011 at 10:45 pm

    I think the harder you try to make it “unstealable” the harder your going to make it for the legit visitors to the site.

    its the same problem as really really complex captchas, sure the current bots may have a harder time reading them, but for some legit users its just as hard.

    anyway all that aside, something you could do is render the images using javascript. so that if they did try to disable it to get past your copy protection they’d be getting rid of the images too.

    # July 7, 2011 at 11:54 pm

    There are other ways to go about this. Not to sound negative but the way you are trying go about it shows a lack of experience and professionalism. Clearly state in your contract under terms and conditions what the guidelines are for something like this. Also establish a license to your templates which help protect you, there are plenty out there. But it sounds to me like you want to make your clients pay for ANY changes other than what you have done. If this is the goal behind what you’re stating, I can confidently say that business will not last long for you.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".