![]() |
![]() |
| Domain Name Sales | Domain Software | Calculate UK Domain Drop Dates | Domain Registration | NameDrive | Domain Parking | Subscribe to our Domains For Sale newsletter |
| | ||||||
| Home | Register | Rules | Membership Upgrade | Domains For Sale | Domain Name Escrow | Mark Forums Read | Domain Classified | Chat Room |
| New Domainers If you are new to domaining or the UK domain market please post your questions here |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #2 (permalink) |
![]() |
Deconstruction wrote a script that does bulk whois checks. Be aware you are limited to 1000 per day. This Whois2 is also there, but I think its perl or something but converting it to php should be easy. Purg also wrote one http://www.acorndomains.co.uk/domain...-download.html
__________________ Browse: |
| |
| | #3 (permalink) |
![]() Join Date: Dec 2009 Location: London
Posts: 113
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Classified Rating: 100% (1) Domain Trader Rating: (100% / 3) | PHP Code for grabbing IPS TAG...easy switch to get Date
This is a part of a script that i wrote where you can dump in a list of domains or keywords (if it's keywords it'll remove spaces and switch it to .co.uk and .com) it'll then go fishing to see if it's been registered or not. This part of the script opens up a the uk nic page and grabs the IPS tag and updates the database. Code: <?php require_once('Connections/db_conn.php'); ?>
<?php
mysql_select_db($database_domains_conn, $domains_conn);
$query_getdomains = "SELECT * FROM domains WHERE domains_id = ".$_GET['did']."";
$getdomains = mysql_query($query_getdomains, $domains_conn) or die(mysql_error());
$row_getdomains = mysql_fetch_assoc($getdomains);
$totalRows_getdomains = mysql_num_rows($getdomains);
?>
<?
do {
$domainTypeUK = preg_match("(.co.uk)", $row_getdomains['domains_domain']);
$domainsTypeOther = preg_match("(.com)", $row_getdomains['domains_domain']);
if ($domainTypeUK == 1)
{
$file = file_get_contents("http://webwhois.nic.uk/cgi-bin/whois.cgi?query=".substr($row_getdomains['domains_domain'],11)."&WHOIS+Submit.x=0&WHOIS+Submit.y=0");
$desc = preg_match("[Tag = (.*)]", $file, $fulldesc);
$ipstag = $fulldesc[1];
$ipstag = str_replace(']', '', $ipstag);
$ipstag = str_replace('[', '', $ipstag);
//echo $fulldesc[1];
$UpdateSQL = "UPDATE domains SET domains_a = '$ipstag' WHERE domains_id = ".$row_getdomains['domains_id']."";
mysql_select_db($database_domains_conn, $domains_conn);
$Result1 = mysql_query($UpdateSQL, $domains_conn) or die(mysql_error());
if($fulldesc[1] == "") {
echo $row_getdomains['domains_domain']." is avaialble!";
}else{
echo "Domain: ".$row_getdomains['domains_domain']." /n IPS Tag was: ".$row_getdomains['domains_a']." /n IPS Tag is now: ".$ipstag;
}
}
else if ($domainsTypeOther == 1)
{
$file = file_get_contents("http://reports.internic.net/cgi/whois?whois_nic=".substr($row_getdomains['domains_domain'],11)."&type=domain");
$desc = preg_match("(Registrar:(.*\s))", $file, $fulldesc);
//echo $fulldesc[1];
$UpdateSQL = "UPDATE domains SET domains_a = '".$fulldesc[1]."' WHERE domains_id = ".$row_getdomains['domains_id']."";
mysql_select_db($database_domains_conn, $domains_conn);
$Result1 = mysql_query($UpdateSQL, $domains_conn) or die(mysql_error());
if($fulldesc[1] == "") {
echo $row_getdomains['domains_domain']." is avaialble!";
}else{
echo "Domain: ".$row_getdomains['domains_domain']." Registrar was: ".$row_getdomains['domains_a']." Registrar is now: ".$ipstag;
}
}
} while ($row_getdomains = mysql_fetch_assoc($getdomains));
// echo $domainsTypeOther;
?>
<?php
mysql_free_result($getdomains);
?> Awesome tool for regular expressions lives at http://gskinner.com/RegExr/ Lee Last edited by lwoody; 19-02-2010 at 11:10:16 AM. Reason: added a url |
| |
| | #4 (permalink) | |
![]() Join Date: Mar 2009 Location: Powys and Hemel Hempstead
Posts: 360
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Domain Trader Rating: (100% / 37) |
To add to what Skinner said, remember there are daily limits and you will get blacklisted if you exceed them. Quote:
| |
| |
| | #5 (permalink) |
![]() |
Don't try blagging your IP either, albeit nom are kinda slow at detecting it, they do spot the patterns
__________________ Browse: |
| |
| | #7 (permalink) |
![]() Join Date: Dec 2009 Location: London
Posts: 113
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Classified Rating: 100% (1) Domain Trader Rating: (100% / 3) | counter
Im not sure if there is an official area within Nominet to monitor this but you could apply a counter to any of your PHP script to keep an eye on how many times you query it. Lee |
| |
| | #8 (permalink) |
![]() Join Date: Mar 2009 Location: Powys and Hemel Hempstead
Posts: 360
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Domain Trader Rating: (100% / 37) | |
| |
| | #9 (permalink) |
![]() |
If you go over the limit you get an display that says you have used your quota. If it happens alot you get blocked. I have been blocked before now, they blacklisted my whole ISP for about 3 months, so I had to use a proxy all the time.
__________________ Browse: |
| |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Domain Name Community | Replies | Last Post |
| PHP Coding - RAD | nick279 | Website Design | 10 | 08-06-2009 11:29:26 PM |
| custom php coding needed | grantw | Website Design | 3 | 30-07-2008 01:12:54 AM |
| PHP include in a Smarty Template | admin | Scripts and Coding | 1 | 13-05-2008 06:37:26 AM |