Pregunta

After having scoured the internet, I'm finding that there's no true way to protect your source code unless you're accessing content stored on the server.

Even with an obfuscator to make your code unreadable, anyone can still copy/paste it and use it on their own site.

So what I've been trying to create is a way to redirect stolen code back to the site after it's been obfuscated/encrypted.

I've been tampering with the following code to try and make it work, but no luck quite yet.

Can anyone make this functional?

¿Fue útil?

Solución

This is working for me:

<script type="text/javascript">
<!--
if (window.location != "http://www.google.com") {
    window.location.href = "http://www.google.com";
} 

//-->


</script>
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top