Page 1 of 1

De-Cloaking

Posted: Mon Apr 06, 2009 11:05 pm
by Capm
Okay, say you have domain1.com forward to domain2.com, but you have it cloaked, so that no matter where you are on domain2.com, it shows domain1.com in the url bar.

I need a forwarder that breaks the cloak without having to click a link. the meta below should work, but doesn't. The link you click works, but the automatic refresh doesnt.

Code: Select all

<html>
<head>
<meta HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\"> 
<meta HTTP-EQUIV=\"refresh\" CONTENT=\"15;url=http://www.midnightsquadron.net/board/index.php?act=home\">
<META HTTP-EQUIV=\"Window-target\" CONTENT=\"_top\">  
<title>Midnight Squadron Loader</title> 
</head> 
<body BGCOLOR=\"#000000\" TEXT=\"#FFFFFF\"> 
<center> 
<a HREF=\"http://www.midnightsquadron.net/board/index.php?act=home\" target=\"_top\">
<img SRC=\"loading.jpg\" BORDER=\"0\" WIDTH=\"145\" HEIGHT=\"100\">
</a>
</center> 
</body> 
</html>    
Anyway... I'm stumped.

Posted: Tue Apr 07, 2009 8:45 pm
by DCrazy
The meta refresh mightn't work because of how cloaking is implemented. When you say that the URL is cloaked, do you mean that *any* URL on domain2.com appears in the address bar as merely \"http://domain1.com\"? Or does the address bar show the correct relative URL, such that \"http://domain2.com/page\" appears as \"http://domain1.com/page\" in the address bar?

If the former, then what's probably going on is that your cloaking provider is using a full-page frame or iframe to pull in the content from the originating URL. This means that the meta refresh will cause that frame to redirect, not the entire browser window. The hyperlink, on the other hand, has a target of \"_top\", which means that the topmost level of the browser window will be redirected.

To get this behavior automatically, you will need to use JavaScript.

Posted: Tue Apr 07, 2009 9:31 pm
by Capm
Yea, any url on domain2 shows as domain1.com

So.. Know where I can find that javascript?

Posted: Tue Apr 07, 2009 9:43 pm
by DCrazy
Try this:

Code: Select all

<html>
<head>
<script type=\"text/javascript>
window.top.location.href = \"http://www.domain2.com/uncloaked_url\"
</script>
</head>
<body>
<a href=\"http://www.domain2.com/uncloaked_url\" target=\"_top\">Click here if your browser does not automatically redirect you.</a>
</body>
</html>

Posted: Wed Apr 08, 2009 9:11 pm
by Capm
Doesn't automaticly forward the page?

Posted: Thu Apr 09, 2009 5:56 am
by Capm
Ahah, got it.

had to add

Code: Select all

<body BGCOLOR=\"#000000\" TEXT=\"#FFFFFF\" onload=\"setTimeout('forward()',5)\"> 
Thanks!