another alternative is to use javascript to retrieve user information associated with the ip's machine then send that to a perl script where the information is manipulated.
use the <img> tag in a web page to capture the information and send it to a perl script. You will probably want the perl script to return a 1x1 pixel blank image so it works properly.
<SCRIPT language=javascript>
//<!--var x;
x="";
x+="<img src='http://yoursite/cgi-bin/capture.cgi?page=";
x+=escape(location.pathname)+"&ref="+escape(document.referrer)+"&ua="+
+escape(navigator.userAgent)+"&plat=";
x+=escape(navigator.platform)+"&cooks="+escape(navigator.cookieEnabled
+)+"&cpu=";
x+=escape(navigator.cpuClass)+"&java="+escape(navigator.javaEnabled())
++"'>";
document.write(x);
//-->
</script>
this will capture several machine specific details that can be parsed by your perl program. Then in the capture.cgi you will want to simple use the ENV var to retrieve the ip address as you probably were.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.