![]() |
|
|
|
#1 |
|
Registered User
Join Date: Mar 2012
Posts: 12
|
Versions of this script in other languages...
I have a DNSBL server hosted at www.mailer.mobi and a script on my web server written in PHP that checks the DNSBL to see if a visitor's IP is blacklisted and returns 0 or 1 accordingly. So you can put the following line of PHP code at the very start of your web site to return a 404 Error "Page Not Found" if it's visited by a computer on a blacklisted IP.
<?php if (@file_get_contents("https://mailer.mobi/?guard=".$_SERVER['REMOTE_ADDR']) == "1") { header("HTTP/1.0 404 Not Found"); die(); } ?> What I'm after is the same functionality as the above line, but just in other dynamic languages, ie. ASP, JSP, Perl (CGI), Python, Coldfusion etc, so I can put them on the Mailer.Mobi DNS Blacklist Lookup Check Spam Report site for people who have sites in those languages. If you know how to do the above in another language, can you help me? |
| (Offline) |
|
| Advertisement | [Remove Advertisement] |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|