Black Hat Forum Black Hat SEO The only backlink provider with unlimited projects/links per day!
Go Back   Black Hat Forum Black Hat SEO > Black Hat SEO > Black Hat SEO

Black Hat SEO Black Hat Search Engine Optimization. Discuss ways to improve your sites ways using Black Hat SEO tactics!

Mad Content   BLOG SEO
Search
 
LinkWheel

LiveChatAgent



Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-2009, 11:39 PM
niggles's Avatar
Newbies
 
Join Date: May 2009
Location: Melbourne Australia
Posts: 35
Thanks: 7
Thanked 14 Times in 7 Posts
Reputation: 10
iTrader: (0)
Default [$_GET] 500+ Google Datacenter IP's CSV

I saw a list of 500+ Google data center IP's here -> http://www.seo-scoop.com/2006/06/23/...enter-ip-list/

So I've turned it into a CSV file and attached it.

For those of you interested, it was pretty easy to extract the list from the HTML. I just saved the HTML which had the list and then ran this code over it instead of spending ages doing it by hand.


PHP Code:
$myString ='1. 64.233.161.18<br />
2. 64.233.161.19<br />etc....'
;

$myStringArray = array();
// add a pipe to keep end of record
$myString str_replace('<br />''|'$myString);
// get rid of new lines
$myString str_replace("\r"''$myString);
// explode to array so we can work with each record
$myStringArrayTemp explode(" " $myString);
// strip out the 1., 2. sequential numbering
for($i=1;$i<520;$i++){
    
    if(
$i<9){
    
        
$myStringArray[] = substr($myStringArrayTemp[$i], 0, -3);
    } 
    
    if(
$i>=and $i99){
    
        
$myStringArray[] = substr($myStringArrayTemp[$i], 0, -4);
    }
    
    if(
$i>=99){
    
        
$myStringArray[] = substr($myStringArrayTemp[$i], 0, -5);
    
    }
}
// implode to comma delimited
$final implode(","$myStringArray);
echo 
$final
Attached Files
File Type: txt google-datacenter.txt (7.1 KB, 29 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to niggles For This Useful Post:
demoniox (07-04-2009)
  #2 (permalink)  
Old 07-04-2009, 12:13 AM
ProfitNow's Avatar
Regular Member
 
Join Date: Jun 2009
Posts: 368
Thanks: 62
Thanked 507 Times in 90 Posts
Reputation: 26
iTrader: (2)
Default Re: [$_GET] 500+ Google Datacenter IP's CSV

Hey, Can you explain what you can do with these?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-04-2009, 12:16 AM
niggles's Avatar
Newbies
 
Join Date: May 2009
Location: Melbourne Australia
Posts: 35
Thanks: 7
Thanked 14 Times in 7 Posts
Reputation: 10
iTrader: (0)
Default Re: [$_GET] 500+ Google Datacenter IP's CSV

If you want to do lots of automated queries to Google, you can't send more than a couple of queries in a short time before it gives an error message stating you might be using a bot.

By choosing a random datacenter each time from the list you could make a bunch of queries without throwing up the error.

Cheers,
Niggles
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-04-2009, 02:07 AM
demoniox's Avatar
Registered Member
 
Join Date: Mar 2007
Posts: 94
Thanks: 15
Thanked 82 Times in 29 Posts
Reputation: 13
iTrader: (0)
Default Re: [$_GET] 500+ Google Datacenter IP's CSV

Thanks for sharing , here is another code useful for scrapping ips
PHP Code:
<?php
set_time_limit
(0);
$url "http://www.seo-scoop.com/2006/06/23/current-known-google-datacenter-ip-list/";
$data file_get_contents($url) or die("ERROR");
preg_match_all('/(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:[.](?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}/si',$data,$matchs);
foreach(
$matchs[0] as $ip) {
    echo 
'"'.ip2long($ip).'","'.$ip.'","'.gethostbyaddr($ip)."\"\n";
}
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-04-2009, 02:37 AM
niggles's Avatar
Newbies
 
Join Date: May 2009
Location: Melbourne Australia
Posts: 35
Thanks: 7
Thanked 14 Times in 7 Posts
Reputation: 10
iTrader: (0)
Default Re: [$_GET] 500+ Google Datacenter IP's CSV

That's much cleaner than mine! I hate preg_match (mainly because I don't understand it), but I know I could have stripped all those URL's in 1 line of code instead of lots!!!

Cheers,
Niggles
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Backlinks Genie

SE Nuke



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


SEO Paladin


Web Hosting
Copyright © 2005 - 2012 BlackHatWorld.com All rights reserved.