cgi_script_to_print_visitor_ip
This is an old revision of the document!
- | index.cgi
#!/usr/bin/perl -wT use CGI qw(:standard); print "Content-type: text/html\n\n"; #print "<pre>\n"; if ($ENV{HTTP_X_FORWARDED_FOR}){ print $ENV{HTTP_X_FORWARDED_FOR}; } else { print $ENV{REMOTE_ADDR}; } print "\n";
Try it here !!
curl ip.k2patel.in
cgi_script_to_print_visitor_ip.1318268752.txt.gz ยท Last modified: 2020/08/10 02:28 (external edit)