• 0

Redirection using javascript


Question

1) there are two URLs.

The codings in the page of the First URL would redirect u to the Second URL

2) Codings

The by looking at the codings, you won't know where u are being redirected to...

Is there anyway?

or can anyone tell me how the following works?

<script language=javascript>
<!-- Hide
// forward URL
{
 T=document.location.hostname
 String1="http://65.118.246.110/URL_forward_main_2.asp?Domain="
 String2=T
 URLString=String1+String2
 //document.write(URLString)
 document.location.href=URLString 
 //document.write("Target URL:" + URLString);
 //window.location.replace(URLString)
  
}
// End Hide --->
</SCRIPT>

:blink:

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
What's the purpose of this script, to hide the destination URL?

584778522[/snapback]

So that the user won't know how the script works?

Edited by alamakme
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.