designchemical saidGreat idea. I’ll try it. Thanks
For jQuery demos I’ve added a function, which checks the location.host. If this does not match the live preview site domain it will create an alert. Then obfuscate the code. At least makes it harder to copy and you dont have the problem of alerts in the demo site.

Thecodingdude said
You can’t protect client side code, it’s impossible. There is always a way to get around the protection, no matter how advanced. If it can be protected, it can be unprotected.
You’re right, but I thought that the trick impeding illegal check of my script.. 
Thanks for the all replies. I removed the alert message 
Tean saidHi Tean,
How is this protecting your file?
So, I put all the scripts in one file. I put the alert () function with a message in the same file. Finally, I obfuscate the script. The trick works perfect because I don’t see any illegal distributes of my script. 
Hi everyone,
I have the security alert (I included the alert() function in my scripts) on my live preview for protect my script – the way works fine, but I am not sure whether it may affect the sale.
What do you think about it?
Congratulations and good luck with sales. I will be follow you on CodeCanyon 
Give your email address 
Hello Everyone!
Sometimes I can see that some Inline Preview Image doesn’t work in the CodeCanyon ToolTip. For example:

Can you tell what is the reason?
Cheers, Lukasz
Merry Christmas everyone and and the best selling in 2012! 
pezflash said
Normally is better strategy to add more features to a single file than split it into several products. Is strange someone buying one will be buying the other, but you can convince some undecided customers if they find more features in an extended file. Also, you can get a higher price for an individual file itself, which on CC is an important thing to consider, as prices are really low. Just my opinion.![]()
Thanks for your reply. Of course you’re right, but not all customers use all functions of the script. So they could buy smaller versions of the script for a lower price.
