Javascript redirection / domain specify
<p>I found an nice script while searching and inspecting the elements of some websites.</p>

<p>This is what I have found:</p>

<pre><code>&lt;script type="text/javascript"&gt;
//redirect browser to fullscreen preview
    if (/^http:\/\/codecanyon\.net/.test(document.referrer))
    window.top.location.href = 'http://www.gravitysign.com/backslider/';                    
&lt;/script&gt;
</code></pre>

<p>So if I understood from this script it tells jquery if the website is opened over codecanyon redirect them to specifed website for preview.</p>

<p>Now... I was wondering if there is possibility to make something like this.</p>

<p>If we specify an website for example <a href="http://google.com" rel="nofollow">http://google.com</a> and we input that into javascript... And then if that website is uploaded to any other domain, other then google.com ... It will redirect to specified site (google) ?</p>

<p>So to clear things out a little bit let me make an example.</p>

<p>If I made a website for "an-website.com" and then someone take their website and upload it to "another-website.com", it will automatically redirect all visitors from another-website.com to an-website.com.</p>

<p>Hope I was clear enough and hope that this is possible. Cheers!</p>
