Browse posteets
About
Contact us
Log In
Register
View: How to check an IP address against blacklists using PHP
How to check an IP address against blacklists using PHP
6 months ago
by
spirit
function
isBlacklisted
(
$ip
)
{
$check
=
join
(
'.'
,
array_reverse
(
explode
(
'.'
,
$ip
)
)
)
.
'.xbl.spamhaus.org.'
;
return
dns_check_record
(
$check
,
'A'
)
;
}
blacklist
dns
ip
php
spam
View source
0 comment
about "How to check an IP address against blacklists using PHP"
Tags
blacklist
dns
ip
php
spam
Note
For PHP4, use checkdnsrr instead of dns_check_record
0 comment about "How to check an IP address against blacklists using PHP"