hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Programming Tutorials : IP Blacklist Check Script
Reply

Programming Tutorials How-Tos related to programming, databases, and the like.
Forum Jump

IP Blacklist Check Script

Reply Post New Thread In Programming Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-15-2012, 10:04 AM
kimchris kimchris is offline
Newbie
 
Join Date: Feb 2006
Posts: 25

IP Blacklist Check Script


<html>
<head>
<title>DNSBL Lookup Tool - IP Blacklist Check Script</title>
</head>
<body>
<form action="" method="get">
<input type="text" value="" name="ip" />
<input type="submit" value="LOOKUP" />
</form>
<?php
/***************************************************************************************
This is a simple PHP script to lookup for blacklisted IP against multiple DNSBLs at once.

You are free to use the script, modify it, and/or redistribute the files as you wish.

Homepage: dnsbllookup.com
****************************************************************************************/
function dnsbllookup($ip){
$dnsbl_lookup=array("dnsbl-1.uceprotect.net","dnsbl-2.uceprotect.net","dnsbl-3.uceprotect.net","dnsbl.dronebl.org","dnsbl.sorbs.net","zen.spamhaus.org"); // Add your preferred list of DNSBL's
if($ip){
$reverse_ip=implode(".",array_reverse(explode(".",$ip)));
foreach($dnsbl_lookup as $host){
if(checkdnsrr($reverse_ip.".".$host.".","A")){
$listed.=$reverse_ip.'.'.$host.' <font color="red">Listed</font><br />';
}
}
}
if($listed){
echo $listed;
}else{
echo '"A" record was not found';
}
}
$ip=$_GET['ip'];
if(isset($_GET['ip']) && $_GET['ip']!=null){
if(filter_var($ip,FILTER_VALIDATE_IP)){
echo dnsbllookup($ip);
}else{
echo "Please enter a valid IP";
}
}
?>
</body>
</html>

Reply With Quote


Sponsored Links
  #2  
Old 06-02-2012, 01:55 PM
xtempore xtempore is offline
Newbie
 
Join Date: Jun 2012
Posts: 18
That's difficult to read. Can you include it in a code block?

Also do you have a particular problem?

Reply With Quote
  #3  
Old 06-03-2012, 02:38 AM
pushmon pushmon is offline
New Member
 
Join Date: May 2012
Posts: 0
I started using https://gist.github.com and have gotten fond of it. You can share code blocks that way.

Reply With Quote
Sponsored Links
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spam blacklist check Chilledhost_uk Programming Discussion 2 07-03-2010 11:01 AM
How to check if the IP is banned/blacklist by search engines? e[X]treme[Z] SEO / SEM Discussions 11 12-16-2009 11:54 PM
[HOT SCRIPT!] Alexa and Google PageRank Service Script + GREAT ADDONS! Check it! Grooby Other Offers & Requests 2 02-15-2007 04:15 AM
[HOT SCRIPT!] Alexa and Google PageRank Service Script + GREAT ADDONS! Check it! Grooby Other Offers & Requests 3 12-02-2006 02:37 AM
Proxy Blacklist Daily updating script? Twista Web Hosting 3 07-15-2005 11:56 AM

Related posts from TheWhir.com
Title Type Date Posted
Pingdom Talks Top Web Hosting Cities and Countries Web Hosting News 2013-03-27 18:49:54
New Internet Censorship Law in Russia Requires Web Hosts, ISPs to Block Illegal Websites Web Hosting News 2012-11-12 12:06:43
Control Panel cPanel Launches New Apache Configuration Script Web Hosting News 2011-12-28 19:41:39
Email Security Firm eleven Expects Obselecense of Blacklist Anti-Spam Solutions Web Hosting News 2011-09-15 17:03:15
Web Host JaguarPC Adds Auto-Installer Softaculous to Hosting Plans Web Hosting News 2011-07-27 18:55:46


Tags
anti phishing, antispam, blacklist, computer security, dnsbl, email filter, internet security, spam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?