cgi_script_to_print_visitor_ip
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| cgi_script_to_print_visitor_ip [2011/10/10 17:45] – k2patel | cgi_script_to_print_visitor_ip [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <code cgi | index.cgi> | ||
| - | # | ||
| - | use CGI qw(: | ||
| - | print " | ||
| - | #print "< | ||
| - | if ($ENV{HTTP_X_FORWARDED_FOR}){ | ||
| - | print $ENV{HTTP_X_FORWARDED_FOR}; | ||
| - | } | ||
| - | else | ||
| - | { | ||
| - | print $ENV{REMOTE_ADDR}; | ||
| - | } | ||
| - | print " | ||
| - | </ | ||
| - | Try it here !! | ||
| - | |||
| - | <code bash> | ||
| - | curl ip.k2patel.in | ||
| - | </ | ||
cgi_script_to_print_visitor_ip.1318268752.txt.gz · Last modified: 2020/08/10 02:28 (external edit)
