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 PHP: Bulk domain availability check!

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
0 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 07-20-2011, 12:28 PM   #201 (permalink)
New Member
Join Date: Jul 2011
Posts: 5
Obosh is an unknown quantity at this point
 



i am little bit confused with bulk check and black listing...
do you or your IP or server IP get black listed or banned for bulk checking?
is that ture? in that case how came godaddy allow us to do the unilimited bulk search?

is there any limit for bulk search?

little bit confused....and scared to use the script for my website....help me guys....
Obosh is offline   Reply With Quote
Old 07-20-2011, 05:07 PM   #202 (permalink)
www.randypendleton.com
 
Archangel's Avatar
Join Date: Jan 2004
Location: Southern Ohio, USA
Posts: 7,283
Archangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatness
 


Child Abuse Breast Cancer SIDS Autism Diabetes Cancer Survivorship Save a Life Adoption Child Abuse
That's a good question. I've checked a few hundred thousand at once with this script and was never blocked, so I'm not sure

Originally Posted by Obosh View Post
i am little bit confused with bulk check and black listing...
????: NamePros.com http://www.namepros.com/code/280961-php-bulk-domain-availability-check.html
do you or your IP or server IP get black listed or banned for bulk checking?
is that ture? in that case how came godaddy allow us to do the unilimited bulk search?

is there any limit for bulk search?

little bit confused....and scared to use the script for my website....help me guys....
Archangel is offline   Reply With Quote
Old 07-20-2011, 09:29 PM   #203 (permalink)
Senior Member
 
BeZazz's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,362
BeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud of
 




Originally Posted by Obosh View Post
i am little bit confused with bulk check and black listing...
do you or your IP or server IP get black listed or banned for bulk checking?
is that ture? in that case how came godaddy allow us to do the unilimited bulk search?
????: NamePros.com http://www.namepros.com/showthread.php?t=280961

is there any limit for bulk search?

little bit confused....and scared to use the script for my website....help me guys....
Pretty sure a while back I posted the script with changes so that it only does a whois query if a DNS or ping (I cant remember)lookup fails.

So the more names that are available in your list the more whois queries and the more chance you will get blocked.

So if say you did a search of common dictionary words most if not all would be taken so there would actually be very few if any whois queries.
__________________
Dolphins
OMFG!
BeZazz [US/UK] Low Cost Friendly Hosting 33% Discount Coupon 33-NPS
BeZazz is offline   Reply With Quote
Old 07-20-2011, 09:58 PM   #204 (permalink)
Senior Member
Join Date: May 2009
Posts: 1,400
lothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to behold
 



Originally Posted by BeZazz View Post
Pretty sure a while back I posted the script with changes so that it only does a whois query if a DNS or ping (I cant remember)lookup fails.
????: NamePros.com http://www.namepros.com/showthread.php?t=280961

So the more names that are available in your list the more whois queries and the more chance you will get blocked.

So if say you did a search of common dictionary words most if not all would be taken so there would actually be very few if any whois queries.
would you mind posting that again? Or is there a more current version somewhere?
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
Hostgator Coupons | Godaddy Coupons | Namecheap Coupons | Name.com Coupons | DynaDot Coupons | BigRock coupons
Domain Censorship Internet censorship issues
lothos is offline   Reply With Quote
Old 07-20-2011, 10:15 PM   #205 (permalink)
Senior Member
 
BeZazz's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,362
BeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud ofBeZazz has much to be proud of
 




It is one page back
http://www.namepros.com/280961-php-b...ml#post4073938
__________________
Dolphins
OMFG!
BeZazz [US/UK] Low Cost Friendly Hosting 33% Discount Coupon 33-NPS
BeZazz is offline   Reply With Quote
Old 07-26-2011, 05:04 PM THREAD STARTER               #206 (permalink)
Senior Member
Join Date: Dec 2006
Location: England
Posts: 1,565
Matthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud ofMatthew. has much to be proud of
 


Adoption Breast Cancer Breast Cancer Cancer Survivorship
Originally Posted by Obosh View Post
i am little bit confused with bulk check and black listing...
do you or your IP or server IP get black listed or banned for bulk checking?
????: NamePros.com http://www.namepros.com/showthread.php?t=280961
is that ture? in that case how came godaddy allow us to do the unilimited bulk search?

is there any limit for bulk search?

little bit confused....and scared to use the script for my website....help me guys....

If you were to hit the servers to such an extent that they felt your usage was inappropriately high (I can't vouch for what criteria these company's might use for that) then it would be your server's IP that would be prevented from using it.

I don't think there has been a report thus far?

GoDaddy are big enough to be able to make their own rules
Matthew. is offline   Reply With Quote
Old 07-26-2011, 05:20 PM   #207 (permalink)
Senior Member
Join Date: May 2009
Posts: 1,400
lothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to beholdlothos is a splendid one to behold
 



Originally Posted by BeZazz View Post
It is one page back
????: NamePros.com http://www.namepros.com/showthread.php?t=280961
http://www.namepros.com/280961-php-b...ml#post4073938
I must have missed it, thanks
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
Hostgator Coupons | Godaddy Coupons | Namecheap Coupons | Name.com Coupons | DynaDot Coupons | BigRock coupons
Domain Censorship Internet censorship issues
lothos is offline   Reply With Quote
Old 08-02-2011, 08:46 AM   #208 (permalink)
NamePros Regular
 
dotker's Avatar
Join Date: Apr 2009
Posts: 775
dotker has a spectacular aura aboutdotker has a spectacular aura about
 



im getting undefined variable $buffer on line45 on BeZazz modification..

removed the $buffer above line69
__________________
Dotker Online Services
LaUnion.ORG on Bido Auctions
dotker is offline   Reply With Quote
Old 08-03-2011, 08:00 PM   #209 (permalink)
New Member
Join Date: Aug 2011
Posts: 2
rajishankar is an unknown quantity at this point
 



Where do i get xip file


I need full source code for checking the domain availability
rajishankar is offline   Reply With Quote
Old 08-03-2011, 08:21 PM   #210 (permalink)
www.randypendleton.com
 
Archangel's Avatar
Join Date: Jan 2004
Location: Southern Ohio, USA
Posts: 7,283
Archangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatness
 


Child Abuse Breast Cancer SIDS Autism Diabetes Cancer Survivorship Save a Life Adoption Child Abuse
There's a link to it a few pages back

Originally Posted by rajishankar View Post
I need full source code for checking the domain availability
Archangel is offline   Reply With Quote
Old 08-04-2011, 01:26 AM   #211 (permalink)
New Member
Join Date: Aug 2011
Posts: 2
rajishankar is an unknown quantity at this point
 



Originally Posted by Archangel View Post
There's a link to it a few pages back
can u give the page URL
rajishankar is offline   Reply With Quote
Old 08-11-2011, 09:57 AM   #212 (permalink)
New Member
Join Date: Mar 2011
Posts: 2
andyrandall is an unknown quantity at this point
 



Wow this thread is ancient yet awesome!


Thanks for this great script mat, which is still being kept alive and updated 3 years later lol. Its truly awesome and just what i needed.

Its a shame mats site is down but thanks to this member for giving a download link here http://www.namepros.com/280961-php-b...ml#post3618414 (thanks mate)

And you should update the index.php with this members code http://www.namepros.com/280961-php-b...ml#post4092014 (thanks mate)(dont forget you need to remove $buffer from line 67 so that it works though)
????: NamePros.com http://www.namepros.com/showthread.php?t=280961

Anyway tanks again mat awesome script
andyrandall is offline   Reply With Quote
Old 09-21-2011, 03:28 AM   #213 (permalink)
First Time Poster!
Join Date: Sep 2011
Posts: 1
scotlad is an unknown quantity at this point
 



Thanks for this script. However I gave it a trial run last night with 10k domains and it gave false results for several i have checked manually so far. I.e it said some of the domains were taken when they were actually avaliable?

Does anyone know why this is and how to solve the issue? I am a developer but not with PHP.

The domains i tried were .co.uk and i used the version with the changes in the post above. Any help greatly appreciated
Last edited by scotlad; 09-21-2011 at 03:32 AM.
scotlad is offline   Reply With Quote
Old 09-21-2011, 11:03 AM   #214 (permalink)
www.randypendleton.com
 
Archangel's Avatar
Join Date: Jan 2004
Location: Southern Ohio, USA
Posts: 7,283
Archangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatness
 


Child Abuse Breast Cancer SIDS Autism Diabetes Cancer Survivorship Save a Life Adoption Child Abuse
The problem might have been from the whois engine for .co.uk I dunno how to fix it but hopefully someone subscribed to this thread knows

Originally Posted by scotlad View Post
Thanks for this script. However I gave it a trial run last night with 10k domains and it gave false results for several i have checked manually so far. I.e it said some of the domains were taken when they were actually avaliable?

Does anyone know why this is and how to solve the issue? I am a developer but not with PHP.

The domains i tried were .co.uk and i used the version with the changes in the post above. Any help greatly appreciated
Archangel is offline   Reply With Quote
Old 10-23-2011, 06:50 PM   #215 (permalink)
First Time Poster!
Join Date: Oct 2011
Posts: 1
themarketingguy is an unknown quantity at this point
 



How can we add more TLDs to this script? I tried to search for .it domains but it's invalid..
themarketingguy is offline   Reply With Quote
Old 10-23-2011, 09:06 PM   #216 (permalink)
www.randypendleton.com
 
Archangel's Avatar
Join Date: Jan 2004
Location: Southern Ohio, USA
Posts: 7,283
Archangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatnessArchangel Has achieved greatness
 


Child Abuse Breast Cancer SIDS Autism Diabetes Cancer Survivorship Save a Life Adoption Child Abuse
Again, you'll need to add the .it engine to it. See my above post.

Originally Posted by themarketingguy View Post
How can we add more TLDs to this script? I tried to search for .it domains but it's invalid..
Archangel is offline   Reply With Quote
Old 11-23-2011, 10:58 AM   #217 (permalink)
First Time Poster!
Join Date: Nov 2011
Posts: 1
milandred is an unknown quantity at this point
 



thanks to all the guys that helped make this script great!
I know that this is really old post, i had red all the post already.

I just found this thread and hoping some one can help me out.
????: NamePros.com http://www.namepros.com/showthread.php?t=280961
i downloaded the latest script from here, and it runs fine.
but only works with 3 or 4 domain at time, if i type more i got the error below.

PHP Warning: feof() expects parameter 1 to be resource, boolean given in on line 143
PHP Warning: fgets() expects parameter 1 to be resource, boolean given in on line 145

line 143: while (!feof($sock))
line 145: $buffer .= fgets($sock, 128)



I hoping some one fixed this issued and want to share.

thanks everyone
milandred is offline   Reply With Quote
Old 12-08-2011, 02:56 AM   #218 (permalink)
New Member
Join Date: May 2011
Location: Sf
Posts: 14
businesserp is an unknown quantity at this point
 



Very Great script! I have just launched a check of 5000 names, and it's thinking. From what I have read so far here, I understood that my server's IP wouldn't get bamed for big checks? Is that so?

Thanks a lot!
__________________
What Is ERP - read about the basics of ERP. Add your quality and informative site in our quality directory b-my.com
businesserp is offline   Reply With Quote
Old 01-08-2012, 01:53 PM   #219 (permalink)
First Time Poster!
Join Date: Jan 2012
Posts: 1
RioSif is an unknown quantity at this point
 



Hello, thanks for that great script!
The best whois script i tried until now.
Although i had to make a little fix to make it work with .tk
Here is what i did
At line 126 change the line
Code:
if (gethostbynamel($domain) !== false) {
with
Code:
if (gethostbynamel($domain) !== false AND $extension !== 'tk') {
and it'll work with tk too!
????: NamePros.com http://www.namepros.com/showthread.php?t=280961

And something else. Org works just fine.

Thanks again
RioSif is offline   Reply With Quote
Post Thanks / Like
Likes Archangel liked this post
Old 02-18-2012, 09:30 PM   #220 (permalink)
Business Member
Join Date: Jan 2012
Posts: 261
CantonSatellite is just really niceCantonSatellite is just really niceCantonSatellite is just really niceCantonSatellite is just really nice
 



Nm
Last edited by CantonSatellite; 02-26-2012 at 11:26 PM.
CantonSatellite is offline   Reply With Quote
Old 02-22-2012, 07:52 AM   #221 (permalink)
New Member
 
Kermos's Avatar
Join Date: Feb 2012
Posts: 16
Kermos is an unknown quantity at this point
 



Working like a charm. Thanks for sharing
Kermos is offline   Reply With Quote
Old 02-26-2012, 11:29 PM   #222 (permalink)
Business Member
Join Date: Jan 2012
Posts: 261
CantonSatellite is just really niceCantonSatellite is just really niceCantonSatellite is just really niceCantonSatellite is just really nice
 



haha,

so if I add

if (gethostbynamel($domain) !== false) {
with
Code:
if (gethostbynamel($domain) !== false AND $extension !== 'xxx, so, it, es') {

all those extensions would work as well ?

---------- Post added at 01:29 AM ---------- Previous post was at 01:27 AM ----------

Also quick question, what if I did this ...


if (gethostbynamel($domain) !== false AND $extension !== 'xxx, .co.in, it, es') {
CantonSatellite is offline   Reply With Quote
Old 02-27-2012, 06:35 AM   #223 (permalink)
4pm
NamePros Regular
 
4pm's Avatar
Join Date: Jun 2011
Location: Moscow
Posts: 619
4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold4pm is a splendid one to behold
 



Originally Posted by CantonSatellite View Post
haha,

so if I add

if (gethostbynamel($domain) !== false) {
with
Code:
if (gethostbynamel($domain) !== false AND $extension !== 'xxx, so, it, es') {

all those extensions would work as well ?

---------- Post added at 01:29 AM ---------- Previous post was at 01:27 AM ----------

Also quick question, what if I did this ...


if (gethostbynamel($domain) !== false AND $extension !== 'xxx, .co.in, it, es') {


thats strange indeed, what you'll get this way is:

if domain resolves by gethostbynamel (taken) but in one of xxx, .co.in, it, es cctld you proceed with checking whois anyway (which only mkakes sense if you want to gather whois data - that doesnot get saved by the script anyway)

but in fact you never even get there - as none of xxx, .co.in, it, es is in $ext array (in inc/dnservers.php) you'll everytime get invalid status returned earlier, check this condition:
PHP Code:
if (strlen($domain) > AND isset($ext[".$extension"])) 
to check other extensions you need to simply add an entry into inc/dnservers.php with .tld, whois server to check and the string to search for:
????: NamePros.com http://www.namepros.com/showthread.php?t=280961

'.es' => array('whois server for this tld', 'string that is in server reply when no domain records found')

also <<$extension !== 'xxx, .co.in, it, es'>> should be <<!in_array($extension, array('xxx', 'co.in', 'it', 'es'))>> if you still want to use this condition






---------- Post added at 10:35 AM ---------- Previous post was at 10:31 AM ----------

Originally Posted by RioSif View Post
Although i had to make a little fix to make it work with .tk
????: NamePros.com http://www.namepros.com/showthread.php?t=280961
Here is what i did
At line 126 change the line
Code:
if (gethostbynamel($domain) !== false) {
with
Code:
if (gethostbynamel($domain) !== false AND $extension !== 'tk') {
and it'll work with tk too!

And something else. Org works just fine.
no it wont
__________________
Webbox | 1st.ly | PR checker
4pm is offline   Reply With Quote
Old 02-27-2012, 04:04 PM   #224 (permalink)
Business Member
Join Date: Jan 2012
Posts: 261
CantonSatellite is just really niceCantonSatellite is just really niceCantonSatellite is just really niceCantonSatellite is just really nice
 



Thanks I will try to read and digest that a bit later this evening !

---------- Post added at 06:04 PM ---------- Previous post was at 05:27 PM ----------

Tried adding (to the include PHP file) just,

'co.in' => array('whois.inregistry.net', 'NOT FOUND'),

Removed any alteration and they still come out as invalid domains ?
CantonSatellite is offline   Reply With Quote
Old 02-29-2012, 06:45 PM   #225 (permalink)
First Time Poster!
Join Date: Feb 2012
Posts: 1
sonuinfy is an unknown quantity at this point
 



I tried installing the "download.zip" shared in the middle of PAGE 6 of this thread. It doesn't work as expected . Getting 404 error. I'm a neophyte in web development but knows HTML very well. Please help !
Thanks.
sonuinfy is offline   Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.namepros.com/code/280961-php-bulk-domain-availability-check.html
Posted By For Type Date
Domain Checker Script - PC Troubleshooting This thread Refback 11-19-2011 04:52 PM
Bulk Domain Availability Checker - Dynamic Drive Forums This thread Refback 11-16-2011 10:00 AM
Domæne navn » Support » Forum | newz.dk This thread Refback 11-01-2011 08:34 PM
Domain Name Availability Search Script - Web Hosting Talk This thread Refback 10-29-2011 09:17 PM
Bulk Domain Availability Check Script | Domain Acquisition This thread Refback 10-26-2011 01:40 PM
Domain Checker Script - PC Troubleshooting This thread Refback 10-07-2011 07:25 AM

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


 
All times are GMT -7. The time now is 12:41 AM.

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