My Free Website Cloaking Php Script For Fantomaster Spiderspy Ip List

make money with website cloaking

Make Money with Website Cloaking

Every day after the panda update, I see more and more cloaking sites appearing in Google’s listings. A lot of my auto generated websites where banned by Google, or where kicked back by something like a -50 penalty. Even some of my completely white hat hand written websites where suffering penalties… I was really getting sick of seeing those very basic cloaking websites hitting the top results more and more.

Then I decided : OK Google if Cloaking is what you you can get it! I analyzed the websites which where cloaking, and started to build a script exactly like those cloaking websites.

I never did cloaking before, but the I realized the most important thing I needed was some kind of Up to Date spider ip list of Google and other spider bots. Did some research and everybody agreed that the fantomaster spiderspy service is the best one out there.

The basic design was :

  1. If the IP adress IS LISTED on the Fantomaster IP list. ALARM this is a Spider Bot and show him keyword optimized content!
  2. Else If the referer came from Google.com and the Ip was NOT listed on the Fantomaster Spiderspy list, then its a Human and show the affiliate website.
  3. Or else If the referer came NOT from Google.com, and is NOT listed on the Fantomaster IP list. Then it is a human, but he did not came in from a Google search query, show him a database error message.

As you can see it’s not that hard just a very easy basic script design. A few weeks later I added some extra features like extract and parsing the keywords, to figure out which affiliate website is the best for which keyword.

With a lot of experience in php scripting this was an easy task to develop. I don’t have a high level of PHP knowledge. But with Google’s help and some trail and error, I created a good working website cloaking script, within an hour. Get the website cloaking script at the end of this article.

After that I was so excited that I instantly created a small script to generate keyword optimized content pages, which where able to use the website cloaking script decision system. Now with one click I could generate thousands of keyword optimized webpages and one big sitemap for it. The only thing I needed to do was uploading the generated pages.

The results after a week where stunning, Google was indexing my webpages and the website started to receive about 50 visits a day, and I made my first sale of that website that day. Within 3 weeks the auto generated website was receiving 300 visits a day, and making around 35 euros a day.

With those results I was so motivated to create more and more websites, and did a lot of php scripting that week to automate everything, from generating webpages and uploading all that generated pages automatic. I can tell you much more about, and maybe I will do here. But for now this is all the information you need, to use this website cloaking script for your own purpose.

And here is the script you where waiting for :

<?php

# load fantomaster botlist
$bot_iplist = file('botlist.txt');

# get ip from visitor
$ip=$_SERVER['REMOTE_ADDR'];

# set refer and host
$refer = parse_url($_SERVER['HTTP_REFERER']);  
$host = $refer['host'];  
$refer = $refer['query'];  

$bot_found = 0;

foreach($bot_iplist as $bot_ip)
{
	$bot_ip = trim(str_replace(array("\r\n","\r","\n"),"",$bot_ip));
	if($ip == $bot_ip)
	{
		#if ip adress found then it is a bot
		$bot_found = 1;	
	}
}


# No Bot Found? And host is Google? 
# Then Redirect them to your affiliate site!

if($bot_found == 0)
{
	if(preg_match('/www.google./',$host) == TRUE)
	{
		# affiliate url redirect :
		$redir_url = 'http://www.youraffiliateurl.com';

		# redirect and parse keywords,
		# from google query to affiliate url
		header('Location: ' . $redir_url . '&keyword=' .trim(getKeywords()));

		exit;
	}
	else
	if(preg_match('/www.google./',$host) == FALSE)
	{
		# visitor is not from google, show database error
		?>
			Could not connect to database 
		<?
		exit;
	}
}

# if ip adress is listed, then it is a bot!
# Show bot you keyword optimized webpage.

include('keyword_optimized_webpage.php');


# extract keyword from Google Query function :
function getKeywords()  
{  
    $refer = parse_url($_SERVER['HTTP_REFERER']);  
    $host = $refer['host'];  
    $refer = $refer['query'];  
      
    #check if they where comming from google
    if(strstr($host,'google'))  
    {  

	$refer =str_replace(array("%2F", "%20","%22","%23","%24","%27", "%2C"), '+', $refer);

	$match = preg_match('/q=([a-zA-Z0-9+-]+)/is',$refer, $output);  

        $querystring = $output[0];  
        $querystring = str_replace('&q=','',$querystring);  
        $keywords = explode('+',$querystring);  

	$querystring =str_replace("+", ' ', $querystring);
	$querystring =str_replace("q=", ' ', $querystring);

        return $querystring;  
    }  
    else  
    {  
        //else, who cares  
        return false;  
    }  
}

?>

Please let us know what you think about this script, and if you used it show or tell us your results!

This entry was posted in Cloaking and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>