streetmedic
Newbie
- Oct 29, 2009
- 5
- 3
This tool for checking how many pages of a certain site are indexed might be handy to you. Its not demo?d here because it?d get hammered! Use sparingly. NB that using a script such as this is against G?s t?s & c?s so you use this at your own risk
ini_set(?user_agent?,'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12);?);
ini_set(?user_agent?,'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.12);?);
PHP:
<?php
$site = $_GET['site'];
if ($site){
$doc = file_get_contents(?http://www.g**gle.com/search?q=site%3a?.$_GET['site']);
if (strpos($doc, ?did not match any documents?)!==false){
echo ?$site : no pages indexed?;
}
else {
$match = preg_match(?#of about <b>([0-9,]*)</b>#?, $doc, $matches);
echo ?$site: ?.$matches[1].? pages indexed?;
}
}
?>
<form>
site : http://<input name=?site?><input type=?submit? value=?go >?>