Log in

View Full Version : Reverse DNS check


MickDoneDee
05-19-2006, 03:19 PM
Would it be possible for an add-on that would check the IP address of someone registering for a Reverse DNS entry to authenticate that IP address?

In the past week, our site was spammed by two separate registered users and when I did a Reverse DNS entry check the result said there was no DNS entry (PTR) for those IP addresses.

As an anti-spam measure, if a Reverse DNS check found no record an error message could be displayed to the user preventing him from registering and posting.

I asked my webhost and he said:
It's not something we can easily do with Apache, it'd have to be an addon for VBulletin, and I don't know if there is such an addon available, the best place to look would probably be the VBulletin support forums.Can it be done? I know that large email service providers do this as an anti-spam measure. Can vBulletin do it?

Logikos
05-20-2006, 07:09 AM
Not sure if this is useful info, but check out this: http://us2.php.net/gethostbyaddr

Paul M
05-20-2006, 07:32 AM
Many perfectly valid IP addresses have no rDNS, you would be blocking legitimate users.

MickDoneDee
05-20-2006, 11:22 AM
Note that all Internet accessible hosts are expected to have a reverse DNS entry (per RFC1912 2.1 (http://www.dnsstuff.com/pages/rfc1912.htm))I think Paul may be right and I've re-considered my stance. Despite the quoted recommendation, many legitimate members don't have reverse DNS entries (PTR records) due to no fault of their own or because they use a proxy to remain anonymous for security. Check some of your key members and you'll probably find many don't have PTR records. I think this idea will have to be shelved.