There are a few problems to solve here:

1) many clients don't send referer vars any more (part of firewalls like
Norton)
2) Anyone running a server-side language can edit the header of the request
to make it look like the image request came from one of your pages
3) there may or may not be a way of checking the referer depending on your
webserver (e.g. an apache mod?)

You could serve your images via CF with cfcontent, so you can do more
stringent checking (e.g. set a session var that must be present for the
image to be sent, if the images are in CF pages).

-----Original Message-----
From: Richard Hensman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 3 May 2005 10:42 
To: CF-Newbie
Subject: Linking to images? (slightly off-topic possibly)

I'm just wondering if anyone has any info on this kind of thing:

One of our sites has a lot of problems with people including their images
directly in their own sites.  Obviously if there was a cfm page there, I
could check an http header, but how do I check the referrer when the request
is for an image alone?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:864
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to