문제

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?

도움이 되었습니까?

해결책

This is working for me:

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

//-->


</script>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top