The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 18, 2019, 01:20:12 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: classicASP: Image Beacons (bugs,tags,tracker,pixel)  (Read 3467 times)
nutballs
Administrator
Lifer
*****
Offline Offline

Posts: 5627


Back in my day we had 9 planets


View Profile
« on: April 21, 2007, 09:27:00 AM »

The biggest problem people have with image beacons is that they don't know how to resolve the fact they they display as a broken image. so they do a 1x1 pixel image to hide it. usually you still see a little black dot somewhere on the page because of it. so why not use the beacon for your tracking/whateverelse purposes, but userside, make a real image appear, making it look like a legitimate image pull from a library or something.

so you just drop this code all by itself in a publicly accessible file. No HTML or anything else. Just that code into a blank document, and save it. name it something remotely intelligent, img.asp for exmaple.

call from ANY webpage, <img src="img.asp">

Code:
Response.ContentType = "image/gif"
dim tmppath,thefile
tmppath="e:\SOMEFULLPATH\beautifulbabe.gif" 
thefile=ReadByteArray(tmppath)
response.binarywrite thefile

Function ReadByteArray(strFileName)
    Const adTypeBinary = 1
    Dim bin
    Set bin = CreateObject("ADODB.Stream")
    bin.Type = adTypeBinary
    bin.Open
    bin.LoadFromFile strFileName
    ReadByteArray = bin.Read
End Function
Logged

I could eat a bowl of Alphabet Soup and shit a better argument than that.
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!