I need a simple CGI script that will display a Web surfer’s IP address (REMOTE_ADDR) and hostname. It should be coded in Perl 5.x and I need to be able to call it using SSI (Server Side Includes). It should NOT log the address or hostname to a file or a database. It should only DISPLAY the information on the page that it is called from. For an example, please look at the bottom of [login to view URL] I am setting up an e-commerce site and I plan to use this script (among other things) as a credit card fraud deterrent on an ordering page. The script MUST work under Unix/Linux systems and be compatible with the Apache Web server. I also need the option of displaying just the IP address, just the hostname, or both. Coder will also need to tell me which CHMOD to use when setting up the script. Furthermore, do NOT use JavaScript, Java, or ActiveX to get the user’s IP and hostname! This will not work if they have these things turned off. Again, here are the requirements: -Must be coded in Perl 5.x and work on Unix/Linux systems -Must be able to call it via SSI -Must be compatible with Apache Web server -Does NOT need to be logged to a database or file -Should have an option to display only IP, only hostname, or both -Coder must inform me which CHMOD # to use -No use of JavaScript, Java, or ActiveX coding
## Deliverables
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.
## Platform
Unix/Linux compatible Apache Web server compatible