ip.pl
Copying Source is Forbidden
26 lines of code
1
#!/usr/local/bin/perl
2
3
binmode(STDIN, ":utf8");
4
binmode(STDOUT, ":utf8");
5
6
# must have's!
7
use strict;
8
use warnings;
9
use CGI::Carp qw(fatalsToBrowser);
10
use URI::Escape;
11
12
my $DEBUG = 0;
13
14
my $output;
15
16
############################################################
17
18
### YOUR CONTENT HERE
19
$output = "content-type: text/plain\n\n";
20
$output .= $ENV{REMOTE_HOST};
21
22
############################################################
23
24
print $output;
25
26
exit 1;