Grow your CSS skills. Land your dream job.

how can i protect my template from thiefs …?

  • # February 17, 2012 at 11:04 am

    i designed many template any themes for wordpress and i want to distribute it with my rules , so i need to protect it from theifs ,,

    i need to make a template working on specified sites thats buying it from me ..

    how can i do that …

    # February 17, 2012 at 11:36 am

    You would need to license your themes. Try http://creativecommons.org/

    # February 17, 2012 at 11:38 am

    A good thief doesn’t care anything about licenses. ;)

    I’d say you can’t fully protect your code, since it’s all so open source. But your actual templates are not visible on the web anyways — only the processed versions of it, after they have been parsed. So basically, only the resulting HTML code is visible, and not the source .PHP templates.

    I think…?

    # February 17, 2012 at 11:39 am

    If someone chooses to ignore the licencing rules they are obviously subject to penalties if he has the resources to both track them down and enforce any judgement.

    Frankly, it seems to me that he’d be better off selling them through someone like Themeforest or the like. At least he’d be assured of getting paid.

    I don’t there is anything you can code that would stop them using an unlicensed copy though.

    # February 17, 2012 at 11:50 am

    @Paulie_D summarized it well.

    # February 18, 2012 at 5:48 am

    my idea that i working on it now is to make a code that will ba generated from a program that i made , then when any clients apply for a template the program generate a code on somewhere in some files that will be confirmed by another function i added it on the template files ..

    the generated code include :

    – client site .
    – starting date ,
    – id number , he can get it by us ..

    but also it is not fully protected …

    my friend suggest me to apply a trick with generating code, by replacing the most comment function i used in a code …

    like :


    function encode($file)
    {
    $func = array(
    'fopen',
    'class',
    'echo',
    'if',
    'else',
    'elseif',
    'for',
    'while',
    'foreach',
    'function',
    'include',
    'print',
    'eval',
    'file_get_contents',
    );


    $enc = array(
    '#30#',
    '#31#',
    '#32#',
    '#33#',
    '#34#',
    '#35#',
    '#36#',
    '#37#',
    '#38#',
    '#39#',
    '#40#',
    '#41#',
    '#42#',
    '#43#',
    );


    $str = array(
    ';',
    '"',
    ''',
    '==',
    '=',
    '===',
    '>',
    '>=',
    '< =',
    '!',
    '!=',
    'and',
    'or',
    'xor',


    '||',
    '&&',
    '{',
    '}',

    );


    $str2 = array(
    '(ح)',
    '(ا)',
    '(ز)',
    '(م)',
    '(ع)',
    '(ل)',
    '(ي)',
    '#100#',
    '#101#',
    '#102#',
    '#103#',
    '#104#',
    '#mcvh#',
    '#ZZZ#',
    '^>>^',
    '~< <~',
    '>?":',
    'dfd :?>',

    );


    $out =preg_replace('/< ?|/',NULL,file_get_contents($file)) ;
    $out =str_replace($func,$enc,$out ) ;
    $out =str_replace($str,$str2,$out) ;
    $out =preg_replace('#$([a-zA-Z0-9]+)#',"@$1@",$out) ;

    $op=fopen("$file",w);
    fwrite($op,$out);
    fclose($op);
    }

    then call :


    encode("file path");
    # February 18, 2012 at 6:57 am

    Not a good idea in my opinion. I mean that in the least offensive way possible.

    What you are trying to do is absolutely justifiable and good, but unfortunately thieves will always steal it if they want it enough.

    You will end up making it harder to maintain for yourself and others.

    Just do your best to create beautiful themes and pay the bills ;)

    # February 18, 2012 at 2:02 pm

    In the Sitepoint book ‘Build Your own Wicked WordPress Themes’, Jeffrey Way — who ran ThemeForest for two years — says: “Piracy is simply a cost that must be factored into the equation…While it does help to send takedown notices to sites like RapidShare, you’ll never win this battle.” There’s more, which basically boils down to: if you want people to pay, you need to offer outstanding documentation and support that they won’t get with a pirated version.

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

You must be logged in to reply to this topic.

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