reverse lookup/domain lookup in PHP
| From: | Tim Baker | Date: | Thu, 11 Sep 2003 09:56:56 +0000 |
| Subject: | reverse lookup/domain lookup in PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162262@lists.php.net to get a copy of this message | ||
I've got some code doing IP checking using the HTTP header...but would like to improve it....
Is it possible to reverse lookup (like here http://www.whatismyipaddress.com/reverse.asp)
to find the domain with PHP? I assume a DNS lookup requires an external server somewhere?
Sounds weird I know but I want to also block a specific domain rather than a range of IPs (as IP
addresses can and do change...) and wondering how/if this was possible?
thanks
Tim