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

My "In your Face" method

Discussion in 'Black Hat SEO' started by blackhaze, Apr 14, 2010.

  1. blackhaze

    blackhaze Power Member

    Joined:
    Jan 11, 2008
    Messages:
    661
    Likes Received:
    167
    Occupation:
    self made millionaire
    Location:
    in the matrix
    Home Page:
    This is a method which allows to link to ANY web site of the internet, with the twist that it will display a *unblockable* pop-under window for displaying related affiliate offers.

    The way it works is that you basically (on a forum or yahoo answers etc.) you can give someone an URL which can be any URL on the web, like free screens savers, health tips, whatever they are asking for.

    You have that little piece of code on YOUR site/server, and what it does it does a redirect (from your site) to the destination site (helpful site)...while at the same time spawning a popup fom your affiliate link.

    (Eg. i am giving someone my link for free WoW wallpapers, person gets to destination site and another window opens too where i sell a WoW guide :) )

    TRICK FOR UNBLOCKABLE popups:

    Its literally IMPOSSBIBLE to have code for a unblockable second window since browsers noways will block ANY of those. (The only way for a true unblockable window is DHTML code which must be part of the HTML of site).

    But i found a workaround for a unblockable window:

    If there is a popup blocker active the user gets to your site, but then he sees a short message "please click here to go to [DESTINATION]" (Like here if you click an external link from hiderefer .org, it the same principle)

    If the user clicks, via a trick the pop-up will open even if he has a popup blocker running.

    If he has NO popup blocker it will just open without that trick.


    Usage is simple, look at the code, and there are two things you can change, destination URL (which is whatever existing site from the web) and POPUP_URL, eg. your clickbank link for related offer.

    You could eg. put this on a site and name it redir1.html, another redir2.html and so forth (or whatever you want to name it)....and then tell people "here, i found a link on wikipeda" http:// YOURSITE .com/redir1.html <-- goes to wikipedia

    This also has potential because you can use this to leave links to "clean" sites, heck even to whitehouse.gov or whatever you want to link to...chances are that your link will not be deleted since your offer is only in the popup and the destination of the redirect is always a real clean site with what the user is looking for. So in a nutshell, its a popup-window spawning redirect.


    Code:
    <head>
    <meta content="en-us" http-equiv="Content-Language">
    <script type='text/javascript'>
    
    function init() {
    	//
    	// ENTER YOUR DESTINATION URL HERE, THE URL OF YOUR HELPFUL 3RD PARTY SITE
    	dest_url = "http://www.nonk.info/worldoffantasyfiles/games/wow/";
    	// 
    	// ENTER YOUR POPUP URL HERE, THE URL (OR AFFILIATE LINK) OF YOUR SITE WITH THE AFFILIATE OFFER
    	pop_url  = 'http://CLICKBANK_ID.kickbutt.hop.clickbank.net/';
    	//
    	var win = doOpen(pop_url);
    }
    
    
    function doOpen(url)
    {
    	win = window.open(url, 'Click', 'toolbar,status,resizable,scrollbars,menubar,location,height=600,width=800');
    	if (win) {
    		// popup successfully created
    		win.blur();
    		redir();
    		setTimeout('win.focus();',10000);
    	} else {
    		// popup was not created.
    		showPopupMessage(url);
    	}
    	return win;
    }
    
    function showPopupMessage(url) {
    	if (!document.createElement) {
    		return;
    		}
    	var elmDiv = document.createElement('div');
    	if (typeof(elmDiv.innerHTML) != 'string'){
    		return;
    		}
    	elmDiv.id = 'popupmessage';
    	/*
    	elmDiv.style.cssText =
    	'position: absolute; top: 225px;' +
    	'width: 650px;' +
    	'color: 000099; ' +
    	'background-color: white; ' +
    	'font-weight: bold; ' +
    	'font-size: 20; ' +
    	'border: solid gray 1px; ' +
    	'padding: 1em;';
    	*/
     
    	var html = '<p align="center">' +
    	'<a href="#" ' +
    	'onclick="win = doOpen(\'' + url + '\'); hidePopupMessage(); redir();'+ 
    	'return false;">' +
    	'<br /><br /><br /><br /><br /><br /><br />Click Here to Continue to<br><b>' + dest_url +'</b></a>' +
    	'<\/div>';
    	document.body.appendChild(elmDiv);
    	elmDiv.innerHTML = html;
    }
    
    
    function hidePopupMessage() {
    		var elmDiv = document.getElementById('popupmessage');
    		if (elmDiv) {
    			elmDiv.parentNode.removeChild(elmDiv);
    			}
    }
    
    function redir() {
    	window.location.href=dest_url;
    	}
    
    
    
    
    </script>
    
    </head>
    <body onload='init()'>
    
    
     
    • Thanks Thanks x 4
    Last edited: Apr 14, 2010
  2. Mrvegas

    Mrvegas Newbie

    Joined:
    Oct 9, 2009
    Messages:
    30
    Likes Received:
    15
    Occupation:
    Design Director
    Location:
    Europe
    Did you get this to work in IE? If you did could you give som extra info? :)
     
  3. mrwho

    mrwho Junior Member

    Joined:
    Apr 3, 2008
    Messages:
    122
    Likes Received:
    39
    Upon running into this script on a webpage using IE, the browser will tell you it prevented scripts or ActiveX controls from running and will just show a blank page so you would have to trick the user another way into letting the script run.
    Script is still a good starting point though and works pretty well