Gossamer Forum
Home : General : Perl Programming :

Remote Host --> NSLOOKUP

Quote Reply
Remote Host --> NSLOOKUP
I am trying to do an automatic lookup of hosts when someone attempts to SPAM my scripts in my site...I have added the following codes:

Code:

my $remote_address = $ENV{'HTTP_REFERER'};
my $check_host = system("nslookup $remote_address");
print "$check_host";


Also, I am using print MAIL "$check_host"; in mail scripts.

The problem is that the domain name and IP addresses do print in the web page, yet the codes print at the top of the screen with 0 printed where the NSLOOKUP results should print. Also, 0 is only sent via email.

I tried using:

Code:

$check_host = $i;


Then nothing printed.

I did search the perldocs in my server and also at http://www.perl.com and http://www.cpan.org to see if there were any Perl modules that I could use rather than using system to run another application.

Any suggestions are welcome.

Thanks in advance.

Regards,

Eliot Lee

Subject Author Views Date
Thread Remote Host --> NSLOOKUP Stealth 5226 Sep 21, 2000, 8:40 PM
Thread Re: Remote Host --> NSLOOKUP
Stealth 5118 Sep 21, 2000, 9:04 PM
Thread Re: Remote Host --> NSLOOKUP
Mark Badolato 5105 Sep 22, 2000, 12:42 AM
Thread Re: Remote Host --> NSLOOKUP
Stealth 5080 Sep 22, 2000, 8:06 AM
Thread Re: Remote Host --> NSLOOKUP
Alex 5071 Sep 22, 2000, 9:10 AM
Post Re: Remote Host --> NSLOOKUP
Mark Badolato 5081 Sep 22, 2000, 9:19 AM
Post Re: Remote Host --> NSLOOKUP
Stealth 5063 Sep 22, 2000, 10:27 AM
Post Re: Remote Host --> NSLOOKUP
dan 5061 Sep 22, 2000, 9:36 AM
Thread Re: Remote Host --> NSLOOKUP
Alex 5088 Sep 22, 2000, 10:52 AM
Post Re: Remote Host --> NSLOOKUP
Stealth 5058 Sep 22, 2000, 11:55 AM
Thread Re: Remote Host --> NSLOOKUP
cK 5070 Sep 22, 2000, 2:21 PM
Post Re: Remote Host --> NSLOOKUP
Stealth 5047 Sep 22, 2000, 2:28 PM