NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Bulk Fake Pagerank Checker.

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
9 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 04-02-2007, 11:34 AM THREAD STARTER               #1 (permalink)
NamePros Regular
 
bliss's Avatar
Join Date: Dec 2005
Posts: 950
bliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to all
 



Bulk Fake Pagerank Checker.


Just posting this for people that want something that will check a lot of fake page ranks. I have not tested it fully, but I think upwards of 500~3000 would be a limit.

The output is in the form of a csv delimited file. You can copy and paste the output into a file NAMEME.csv and open up in a excel type of spreadsheet software. Sort the results and there you go. If it can not find the info: page it will print out the url of the site with a link to the info:. I have came accross a few that showed that it was pointing towards another domain. I am not that great at preg_match so if someone would update it so it would not return a false not found.

This is not a public domain script. You may not sell, resell it. You can not publish it on other forums, websites, and etc without the copyright notice in place. You may not claim the work as you own. All rights remain with AllStar of Onic Designs.

fakepagerank.php (paste your list into the box without the http:// on the url.
www is just fine to have.
Code:
<?php

//copyright 2007 -> AllStar -> http://onicdesigns.com
set_time_limit(0);
ob_start();

function getweb($website)
{
   if(!$ch = curl_init($website)) {
    echo "Could not connect to $website";
       return;
   }
   curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt ($ch, CURLOPT_HEADER, 0);
   $output = curl_exec($ch);
   curl_close ($ch);
   return $output;
}


function checkpagerank($url)
{ 
    $total = getweb('http://www.google.com/search?hl=en&q=info%3A'.urlencode($url)); 
    $match_expression = '/<span class\=a>(.*)\/<\/span><\/font>/i';
    preg_match($match_expression,$total,$matches); 
    return strip_tags($matches[1]);    
}


function sayln($str)
{
  echo $str."<br />";
  ob_flush();
  flush();
  return;
}

include_once('getpr.php');
$google = new google_pr(); 

 if(isset($_POST['submit']))
 { 
    sayln('Checking for valid pageranks :) Wee...');

    $domains = explode("\n", $_POST['domains']); 
    foreach($domains as $domain)
    {   
        $rurl = null;
        $domain = trim($domain);
        $rurl = checkpagerank($domain);
        if($rurl == $domain)
        {
            $pagerank   = trim($google->get_page_rank('http://'.$domain));
            if($pagerank  != 0)  
             {
               sayln($rurl.','.$pagerank);
             } 
        }
        elseif($rurl == '')
        {
            $pagerank   = trim($google->get_page_rank('http://'.$domain));
            if($pagerank  != 0)  
             {
               sayln('<a href="http://www.google.com/search?hl=en&q=info%3A'.urlencode($domain).'">'.$domain.'</a>,'.$pagerank.',not found');
             }     
        }
    }
 } 
 else 
 { 
?>
<div style="text-align: center">
    <form action="fakepagerank.php" method="post">
        <textarea name="domains" cols="100" rows="20"></textarea>
        <br /><input type="submit" name="submit" value="Check For Valid Pagerank!" style="font-size: 30pt;" />
        
    </form>
</div>
<?php } ?>
(this code below is copyright the orginal author)
????: NamePros.com http://www.namepros.com/code/312113-bulk-fake-pagerank-checker.html
????: NamePros.com http://www.namepros.com/showthread.php?t=312113
getpr.php
Code:
<?php

define('GOOGLE_MAGIC', 0x00000000E6359A60); // CHANGED (64Bit)

class google_pr
{

var $checksum;

function google_pr(){
    $this->checksum='';
}

function zeroFill($a, $b){
    $z = hexdec(80000000);
    if ($z & $a)
    {
        $a = ($a>>1);
        $a &= (~$z);
        $a |= 0x40000000;
        $a = ($a>>($b-1));
    } else {
        $a = ($a>>$b);
    }
    return $a;
}


function mix($a,$b,$c) {
    $a -= $b; $a -= $c; $this->toInt32($a); $a = (int)($a ^ ($this->zeroFill($c,13)));
    $b -= $c; $b -= $a; $this->toInt32($b); $b = (int)($b ^ ($a<<8));
    $c -= $a; $c -= $b; $this->toInt32($c); $c = (int)($c ^ ($this->zeroFill($b,13)));
    $a -= $b; $a -= $c; $this->toInt32($a); $a = (int)($a ^ ($this->zeroFill($c,12)));
    $b -= $c; $b -= $a; $this->toInt32($b); $b = (int)($b ^ ($a<<16));
    $c -= $a; $c -= $b; $this->toInt32($c); $c = (int)($c ^ ($this->zeroFill($b,5)));
    $a -= $b; $a -= $c; $this->toInt32($a); $a = (int)($a ^ ($this->zeroFill($c,3)));
    $b -= $c; $b -= $a; $this->toInt32($b); $b = (int)($b ^ ($a<<10));
    $c -= $a; $c -= $b; $this->toInt32($c); $c = (int)($c ^ ($this->zeroFill($b,15)));
    return array($a,$b,$c);
}

function strord($string) {
    for($i=0;$i<strlen($string);$i++) {
        $result[$i] = ord($string{$i});
    }
    return $result;
}

function GoogleCH($url, $length=null, $init=GOOGLE_MAGIC) {
    if(is_null($length)) {
        $length = sizeof($url);
    }
    $a = $b = 0x9E3779B9;
    $c = $init;
    $k = 0;
    $len = $length;
    while($len >= 12) {
        $a += ($url[$k+0] +($url[$k+1]<<8) +($url[$k+2]<<16) +($url[$k+3]<<24));
        $b += ($url[$k+4] +($url[$k+5]<<8) +($url[$k+6]<<16) +($url[$k+7]<<24));
        $c += ($url[$k+8] +($url[$k+9]<<8) +($url[$k+10]<<16)+($url[$k+11]<<24));
        $mix = $this->mix($a,$b,$c);
        $a = $mix[0]; $b = $mix[1]; $c = $mix[2];
        $k += 12;
        $len -= 12;
    }

    $c += $length;
    switch($len)
    {
        case 11: $c+=($url[$k+10]<<24);
        case 10: $c+=($url[$k+9]<<16);
        case 9 : $c+=($url[$k+8]<<8);
        case 8 : $b+=($url[$k+7]<<24);
        case 7 : $b+=($url[$k+6]<<16);
        case 6 : $b+=($url[$k+5]<<8);
        case 5 : $b+=($url[$k+4]);
        case 4 : $a+=($url[$k+3]<<24);
        case 3 : $a+=($url[$k+2]<<16);
        case 2 : $a+=($url[$k+1]<<8);
        case 1 : $a+=($url[$k+0]);
    }
    $mix = $this->mix($a,$b,$c);

    return $mix[2];
}


function getGoogleChecksum($url) {
    $url="info:"."http://".str_replace('http://','',$url);
    $tmp_ch=$this->strord($url);
    $this->checksum=sprintf("%u", $this->GoogleCH($tmp_ch));
    return $this->checksum;
}

function toInt32(& $x) {
    $z = hexdec(80000000);
    $y = (int)$x;
    if($y==-$z&&$x<-$z){
        $y = (int)((-1)*$x);
        $y = (-1)*$y;
    }
    $x = $y;
}

function get_page_rank($url){
  
    $reqgr = "info:".$url;
    $reqgre = "info:".urlencode($url);
    $gch="6".$this->getGoogleChecksum($url);
    $patern = '/^http:/';
    $patern2 = '/^http:\/\/.*google\..*\/(search|images|groups|news).*/';
    $patern3 = '/^http:\/\/localhost.*/';
    $patern4 = '/^http:\/\/(127\.|10\.|172\.16|192\.168).*/'; //local ip
    if(!preg_match($patern, $url) || preg_match($patern2, $url) ||
       preg_match($patern3, $url) || preg_match($patern4, $url)){
           return -1;
    }
    else
    {

   $website = "http://toolbarqueries.google.com/search?client=navclient-auto&ch=".$gch."&ie=UTF-8&oe=UTF-8&features=Rank&q=".$reqgre;
   if(!$ch = curl_init($website)) {
       return 'Count not connect to google.com';
   }
   curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
   curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; GoogleToolbar 3.0.114-big; Windows XP 5.1)');
   curl_setopt ($ch, CURLOPT_HEADER, 0);
   curl_setopt($ch, CURLOPT_TIMEOUT, 20);
   $res['content'] = curl_exec($ch);
   curl_close ($ch);
   
        if(preg_match('/Rank_.*?:.*?:(\d+)/i', $res['content'], $m)) 
        {
              return $m[1];
        }
        else
        {
            return 0;
        }
    }
}
}

?>
Last edited by bliss; 04-03-2007 at 03:01 AM.
bliss is offline  
Old 04-02-2007, 10:24 PM   #2 (permalink)
NamePros Member
Join Date: Dec 2006
Posts: 92
mohanankur is an unknown quantity at this point
 



WOW, Thanks lot buddy. U are Great
mohanankur is offline  
Old 04-02-2007, 11:08 PM   #3 (permalink)
NamePros Regular
 
mlmleads's Avatar
Join Date: Oct 2006
Posts: 295
mlmleads is a jewel in the roughmlmleads is a jewel in the roughmlmleads is a jewel in the rough
 


Save a Life Animal Rescue 9/11/01 :: Never Forget Child Abuse Wildlife
[link removed]

getting an early error any ideas.
__________________
Ask me about high monthly income adult domains.
Last edited by qbert220; 07-28-2009 at 09:01 AM. Reason: remove link
mlmleads is offline  
Old 04-03-2007, 02:53 AM THREAD STARTER               #4 (permalink)
NamePros Regular
 
bliss's Avatar
Join Date: Dec 2005
Posts: 950
bliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to all
 



Quote:
Fatal error: Call to undefined function: curl_init() in /home/tarjeft/public_html/fakepagerank.php on line 9
Your server does not have cUrl installed.

http://www.php.net/curl
bliss is offline  
Old 04-23-2007, 03:54 PM   #5 (permalink)
 
kleszcz's Avatar
Join Date: Jul 2006
Posts: 4,609
kleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatnesskleszcz Has achieved greatness
 



Marrow Donor Program Multiple Sclerosis
Great script. Thanks alot.
kleszcz is offline  
Old 04-24-2007, 06:35 AM   #6 (permalink)
Senior Member
 
dotnom's Avatar
Join Date: Jun 2005
Location: ZARDEN.com
Posts: 1,515
dotnom is a name known to alldotnom is a name known to alldotnom is a name known to alldotnom is a name known to alldotnom is a name known to alldotnom is a name known to all
 


Save a Life Diabetes Diabetes Diabetes Diabetes Diabetes Diabetes Diabetes
I get a false 'not found' as you stated in the start to almost all the names
All the domain's PR is valid
I got about 25 'not found' and 1 OK
__________________
Active Supporter of GR.com Private Second Level Domain Registry
Check their Facebook page : Facebook.GR.com
Check their Twitter page : Twitter.GR.com
dotnom is offline  
Old 06-23-2007, 01:26 AM THREAD STARTER               #7 (permalink)
NamePros Regular
 
bliss's Avatar
Join Date: Dec 2005
Posts: 950
bliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to all
 



The not found is because it has to be changed up to try to find the domain. I'll see if I can update it to strip a few things and then spit out the correct information.
bliss is offline  
Old 07-06-2007, 04:06 AM   #8 (permalink)
NamePros Member
Join Date: Jun 2007
Posts: 118
richard.feakes is an unknown quantity at this pointrichard.feakes is an unknown quantity at this point
 



Hi!

I'm sure it's a great script but I haven't yet got it to work!

My shared hosting environment means I don't have the cURL installed so I cannot run the script!

I wondered if anyone had found a script similar to this one?

__________________
:love: I luv The PageRank Reporter - the only free, fake, bulk PageRank checker - try it now! :love:
richard.feakes is offline  
Old 07-18-2007, 04:47 AM   #9 (permalink)
Senior Member
 
champ_rock's Avatar
Join Date: Oct 2006
Location: http://akshayjain.org
Posts: 2,817
champ_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond reputechamp_rock has a reputation beyond repute
 



can u please provide a working demo because my host also does not have cURL due to which I cannot use it
champ_rock is offline  
Old 07-24-2007, 05:07 AM   #10 (permalink)
NamePros Regular
 
asgsoft's Avatar
Join Date: Sep 2005
Location: At Home
Posts: 881
asgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of light
 



is it possible to fix these errors?
asgsoft is offline  
Old 07-24-2007, 08:08 PM THREAD STARTER               #11 (permalink)
NamePros Regular
 
bliss's Avatar
Join Date: Dec 2005
Posts: 950
bliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to all
 



There is no *errors*. It is due to their host not having cUrl installed they are unable to run it.
bliss is offline  
Old 07-25-2007, 08:53 AM   #12 (permalink)
NamePros Regular
 
asgsoft's Avatar
Join Date: Sep 2005
Location: At Home
Posts: 881
asgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of light
 



if it says "not found"?
asgsoft is offline  
Old 07-25-2007, 07:34 PM THREAD STARTER               #13 (permalink)
NamePros Regular
 
bliss's Avatar
Join Date: Dec 2005
Posts: 950
bliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to all
 



Then pagerank is not found. The script does a check for fake pagerank. When you do info:site.com then it should show the domain. If does not show the domain then it is possible it is fake pagerank. When it shows a different website then you did the info for then it is faked.

http://www.google.com/search?q=info%3Apspvideo.info
bliss is offline  
Old 08-31-2007, 03:11 PM   #14 (permalink)
NamePros Regular
 
wikes82's Avatar
Join Date: Sep 2006
Location: K-R.NET
Posts: 902
wikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud ofwikes82 has much to be proud of
 


Save a Life Cancer
does the script really works? because I tried manually querying google info:domainname
and google asked for a captcha verification, with explanation that google thought I was an automated computer software or virus.
wikes82 is offline  
Old 10-13-2007, 02:02 AM   #15 (permalink)
NamePros Regular
 
asgsoft's Avatar
Join Date: Sep 2005
Location: At Home
Posts: 881
asgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of light
 



Sorry to bump an old thread but I tried PM and got no reply

http://www.google.com/search?hl=en&q...3Arequiems.net has a domain in it. But it says "not found"

Also I think there is a problem with the regex expression.
if i input www.thewebmasterstool.com it shows the PR however if I remove www. it doesn't show anything but in google it has the indexed page.

Can this be fixed?
asgsoft is offline  
Old 10-22-2007, 05:11 AM THREAD STARTER               #16 (permalink)
NamePros Regular
 
bliss's Avatar
Join Date: Dec 2005
Posts: 950
bliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to allbliss is a name known to all
 



Thanks for the interest asgsoft in the script. WWW. vs NON WWW. www is considered in googles eyes to be a different domain. So, www.domain.com can have a different pagerank as domain.com. So, the script treats www.domain.com and domain.com differently. Over Private message. I have determined that the regex needed an extra / to be included with it. Also, I have noticed that google will in fact issue a "automated computer software". So, bulk fake page rank checks can not be done anymore. Maybe 25 at a time if not done more then that in a given hour. To bad google does not have a api that will allow for this. They have 10 per day query through the api, but that stinks.
????: NamePros.com http://www.namepros.com/showthread.php?t=312113

As for cUrl. I am not going to do a sockets / file_get_contents version of it, because I lack the knowledge to code in the sockets into it. The cUrl should be placed into a function and checked to be installed if not then check if use of file_get_contents is allowed. If not then resort to sockets. Using Sockets is slow and a pile of crap compared to cUrl (cUrl does sockets, but better and faster then php does) Sorry..

.
bliss is offline  
Old 10-22-2007, 08:33 AM   #17 (permalink)
NamePros Regular
 
asgsoft's Avatar
Join Date: Sep 2005
Location: At Home
Posts: 881
asgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of lightasgsoft is a glorious beacon of light
 



So is there any way of checking the validity of "bulk" (200) domains at once?
asgsoft is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 03:42 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger