> I know how to check the server variables and the referrer, but what
> confuses me at the moment is how to do it for images that I only want
> accessed from a specific page on my server...

Scott Mitchell wrote an article on how to do this, compelete with sample
code.  I've actually just deployed it to a friend's site, and it works just
great.  Didn't have to write a single line of code.  Even configurable in
web.config.

The article is at:
http://msdn.microsoft.com/library/en-us/dnaspp/html/httphandl.asp

Go about 2/3rds down the the section titled "Protecting Your Images"...

You might want to remove from the code the other two examples you don't
need...

-g




------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to