iAuth can do this. The trick is to control the server content via an ISAPI
DLL. iAuth is the only ISAPI DLL that uses CF, CFMX or BlueDragon as its logic
and control. Basically, when a user requests an image the web server will
query the authentication filter and the filter will either instruct IIS to
serve the content or block the request in some way (with iAuth you can open a
standard browser login on the broswer, redirect to a custom login or serve back
alternate content). So, in your case you can authenticate based on the referer
or a cookie or session to make sure that the user is on your site before
serving up the image. In your iAuth template you can do something like:
<cfif isdefined("session.loggedin") is "no">
result=auth_reject
response="301 content moved"
<responsetext text="<html><head><meta http-equiv=""refresh""
content=""0;url=http://www.example.com/img.gif""></head></html>">
location=http://www.example.com/img.gif
<cfelse>
result=auth_accept
</cfif>
You can download iAuth from our web site -
http://www.coolfusion.com/downloads/index.cfm?id=4
It can be installed with a serial number of DEMO for a 60-day fully-functional
trial.
Regards,
--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
PrismAV - Virus scanning for ColdFusion applications
>>> Find out how iMS Stacks up to the competition:
>>> http://www.coolfusion.com/imssecomparison.cfm
--- On Tuesday, March 29, 2005 1:56 PM, Burns, John D scribed: ---
>
> Other than serving all images on a site up through a CF page using CF
> Content, what ways have people protected their images from being
> linked
> from other sites using the web server (IIS in my case) or possibly
> some
> sort of other CF solution. I have seen stuff before from free hosting
> pages where if you try to put their images in your pages using <img
> src="http://www.theirsite.com/someimage.jpg"> it will actually return
> an
> image that says "linking to our images from another site is not
> allowed". Any ideas for how people do that?
>
> John Burns
> Certified Advanced ColdFusion MX Developer
> Wyle Laboratories, Inc. | Web Developer
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200555
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54