Browse posteets
About
Contact
Log In
Register
View: How to check an IP address against blacklists using PHP
How to check an IP address against blacklists using PHP
2 years 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
Embed
|
View source
Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/751"></script>
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"