Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP script to find domain name age [closed]

Tags:

php

I am trying to write a script (in PHP) that find a domain age (creation date and maybe if possible, last update and expiration date as well). I want the script to return something like: 2009,2009,2010 if creation date is 2009, update date is 2009, and expiration is 2010 (an array)

help?

(This is NOT a homework question so please provide as much help as possible)

If you need more information to explain the problem please write a comment and I will be glad to provide more information

like image 289
user220755 Avatar asked Oct 14 '22 10:10

user220755


1 Answers

Many domain registrars offer an API that can be queried for domain name lookups (though usually the API is offered only to resellers/affiliates). These API's are language neutral and so can be used by any programming/scripting language, including PHP.

Another option would be to do a domain lookup against a registrar's whois web interface and scrape the result. This isn't recommended though - mostregistrars implement CAPTCHAs to prevent this type of behavior.

Here's a small list of registrars that offer APIs:

  • http://opensrs.com/
    1. http://www.resellerclub.com/features/api/
    2. http://www.dynadot.com/domain/api.html
    3. https://joker.com/faq/category/39/22-dmapi.html
    4. http://www.domainpeople.com/reseller/partner-direct-api.html
like image 125
leepowers Avatar answered Nov 03 '22 03:11

leepowers