I see where a site writes a 1x1 sized image to browser.

Discussion in 'ASP .Net' started by AAaron123, Sep 22, 2009.

  1. AAaron123

    AAaron123 Guest

    I see where a site writes a 1x1 sized image to browser.

    Why would they do that?



    Thanks

    <script language="javascript1.2" type="text/javascript">

    document.write('<img
    src="http://bi.medscape.com/pi/global/emedicinehealth-1x1.gif?' + new
    Date().getTime() + '" alt="" height="1" width="1" border="0" />')

    </script>
     
    AAaron123, Sep 22, 2009
    #1
    1. Advertising

  2. AAaron123

    Ralph Guest

    "AAaron123" <> wrote in message
    news:...
    > I see where a site writes a 1x1 sized image to browser.
    >
    > Why would they do that?
    >
    >
    >
    > Thanks
    >
    > <script language="javascript1.2" type="text/javascript">
    >
    > document.write('<img
    > src="http://bi.medscape.com/pi/global/emedicinehealth-1x1.gif?' + new
    > Date().getTime() + '" alt="" height="1" width="1" border="0" />')
    >
    > </script>
    >


    They are using it for tracking purposes.
     
    Ralph, Sep 22, 2009
    #2
    1. Advertising

  3. AAaron123

    AAaron123 Guest

    Ralph wrote:
    > "AAaron123" <> wrote in message
    > news:...
    >> I see where a site writes a 1x1 sized image to browser.
    >>
    >> Why would they do that?
    >>
    >>
    >>
    >> Thanks
    >>
    >> <script language="javascript1.2" type="text/javascript">
    >>
    >> document.write('<img
    >> src="http://bi.medscape.com/pi/global/emedicinehealth-1x1.gif?' + new
    >> Date().getTime() + '" alt="" height="1" width="1" border="0" />')
    >>
    >> </script>
    >>

    >
    > They are using it for tracking purposes.


    How does that work?

    If I go back they can see it?

    Thanks
     
    AAaron123, Sep 22, 2009
    #3
  4. AAaron123

    Ralph Guest

    "AAaron123" <> wrote in message
    news:...
    > Ralph wrote:
    >> "AAaron123" <> wrote in message
    >> news:...
    >>> I see where a site writes a 1x1 sized image to browser.
    >>>
    >>> Why would they do that?
    >>>
    >>>
    >>>
    >>> Thanks
    >>>
    >>> <script language="javascript1.2" type="text/javascript">
    >>>
    >>> document.write('<img
    >>> src="http://bi.medscape.com/pi/global/emedicinehealth-1x1.gif?' + new
    >>> Date().getTime() + '" alt="" height="1" width="1" border="0" />')
    >>>
    >>> </script>
    >>>

    >>
    >> They are using it for tracking purposes.

    >
    > How does that work?
    >
    > If I go back they can see it?
    >
    > Thanks


    Probably and its just a guess, but they have an httphandler set up to handle
    the request for the gif file.
    It that handler they can track whatever info would be available by from the
    httprequest object.
    Of course they may be using something other than .net on there server, but
    the idea is still the same.
    Document write doesn't make so much sense to me though.
    I am pretty sure some antivirus software will actually block the use of
    document.write.
     
    Ralph, Sep 22, 2009
    #4
  5. AAaron123

    AAaron123 Guest

    Ralph wrote:
    > "AAaron123" <> wrote in message
    > news:...
    >> Ralph wrote:
    >>> "AAaron123" <> wrote in message
    >>> news:...
    >>>> I see where a site writes a 1x1 sized image to browser.
    >>>>
    >>>> Why would they do that?
    >>>>
    >>>>
    >>>>
    >>>> Thanks
    >>>>
    >>>> <script language="javascript1.2" type="text/javascript">
    >>>>
    >>>> document.write('<img
    >>>> src="http://bi.medscape.com/pi/global/emedicinehealth-1x1.gif?' +
    >>>> new Date().getTime() + '" alt="" height="1" width="1" border="0"
    >>>> />')
    >>>>
    >>>> </script>
    >>>>
    >>>
    >>> They are using it for tracking purposes.

    >>
    >> How does that work?
    >>
    >> If I go back they can see it?
    >>
    >> Thanks

    >
    > Probably and its just a guess, but they have an httphandler set up to
    > handle the request for the gif file.
    > It that handler they can track whatever info would be available by
    > from the httprequest object.
    > Of course they may be using something other than .net on there
    > server, but the idea is still the same.
    > Document write doesn't make so much sense to me though.
    > I am pretty sure some antivirus software will actually block the use
    > of document.write.


    Good. Thanks. I couldn't imagine how they got to see any data from me.
     
    AAaron123, Sep 22, 2009
    #5
  6. "Ralph" <> wrote in
    news::

    > Probably and its just a guess, but they have an httphandler set up to
    > handle the request for the gif file.
    > It that handler they can track whatever info would be available by
    > from the httprequest object.
    > Of course they may be using something other than .net on there server,
    > but the idea is still the same.
    > Document write doesn't make so much sense to me though.
    > I am pretty sure some antivirus software will actually block the use
    > of document.write.


    By using document.write, they are requesting the "tracking" image late,
    rather than part of the original request stream. It may not work to
    their advantage, but it removes certain anamolies from the original
    request.\

    For example, if the page is https, it can possibly circumvent the "parts
    of this page are not secure" error, as the request is made after the
    page when made in JavaScript. Not 100% sure on that, but the JavaScript
    wirte would mean the page is already processed prior to asking for the
    image.

    Not sure what they are tracking, however, if that is the intent. Only
    sending a datetime. As they can get the same information in the web
    logs, it does not make much sense, unless they are trying to get your
    local time as part of the URL to compare against server time.

    Strange.

    Peace and Grace,

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA

    Twitter: @gbworld
    Blog: http://gregorybeamer.spaces.live.com

    My vacation and childhood cancer awareness site:
    http://www.crazycancertour.com

    *******************************************
    | Think outside the box! |
    *******************************************
     
    Gregory A. Beamer, Sep 23, 2009
    #6
  7. AAaron123 wrote:
    > I see where a site writes a 1x1 sized image to browser.
    >
    > Why would they do that?


    It's a particular implementation of something called a "web bug":

    http://en.wikipedia.org/wiki/Web_bug

    Andrew
     
    Andrew Morton, Sep 23, 2009
    #7
  8. AAaron123

    AAaron123 Guest

    Andrew Morton wrote:
    > AAaron123 wrote:
    >> I see where a site writes a 1x1 sized image to browser.
    >>
    >> Why would they do that?

    >
    > It's a particular implementation of something called a "web bug":
    >
    > http://en.wikipedia.org/wiki/Web_bug
    >
    > Andrew


    Good site, thanks
     
    AAaron123, Sep 24, 2009
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. thechaosengine

    Oddly sized sized password textbox

    thechaosengine, Sep 15, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    590
    David Hearn
    Sep 15, 2005
  2. Serial # 19781010
    Replies:
    1
    Views:
    516
    William Tasso
    Aug 10, 2003
  3. conradojr
    Replies:
    5
    Views:
    634
  4. Samy
    Replies:
    0
    Views:
    635
  5. Mel

    1x1 popup window possible ?

    Mel, Jan 9, 2004, in forum: Javascript
    Replies:
    5
    Views:
    93
    Patricio Stegmann
    Feb 4, 2004
Loading...

Share This Page