Solved

tracking cgi script

Posted on 2014-11-25
5
184 Views
Last Modified: 2014-11-25
I have a little cgi script that will send to my email address when I person goes into my web page



#!/bin/usr/bin
    # set this to the location of your server's mail program
    # (obtain this info from your hosting provider)
    $mailprog = '/usr/sbin/sendmail-t-i';
    # set this to your email address
    $email = 'sales@xxxxx.com';
    # to use this script, add the following html
    # tag to whichever page you want to track:
    #
    #<img src="/cgi-bin/tracker.cgi" width="0" height="0">


I have the permission set at 755

When I go into my web site it goes to
pages/ home.htm
The tracker.cgi files is in the pages folder set at 755
and I have with in the home.htm
<img src="/cgi-bin/pages/ tracker.cgi" width="0" height="0">



Put can not seem to get it to work.

Iam not sure what I am doing wrong here.
0
Comment
Question by:starview
  • 3
  • 2
5 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40465990
Try width="1" height="1".  I think some browsers take 0/0 to mean it doesn't exist.  In addition, if it is really in "/cgi-bin/tracker.cgi", why are you putting "/cgi-bin/pages/ tracker.cgi" in the "home.htm" file?
0
 

Author Comment

by:starview
ID: 40466013
Sorry I left it out the "pages" when I was typeing  here
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 40466031
Is that really formmail.cgi or one of the alternate versions?
0
 

Author Closing Comment

by:starview
ID: 40466038
That did the trick thank you
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 40466199
You're welcome.  We had a question once where somebody put width="0" height="0" and they just couldn't get it to work.  I have also noticed that all the tracking images are width="1" height="1" so I figured that meant something because I'm sure they'd put width="0" height="0" if it worked.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now