Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » The danger of linking to images you don't own
Search Topic:
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Trying To Use Same look on diff Pages »
« Need software for creating web page  
AuthorAll Replies


superman
The Flying Man
Premium
join:2004-10-30

reply to nil
Re: The danger of linking to images you don't own

said by nil See Profile:

btw, the mod_rewrite hack is very simple:


RewriteCond %{REQUEST_URI} dcp_0252\.jpg
RewriteCond %{HTTP_REFERER} !.*unix-girl\.com.*
RewriteRule (.*) /images/ebayscam.jpg [R,L]

what does that do?

--

"I know what you're doing. But you can't buy back my friendship." - Clark Kent

"Look, I'm willing to give this friendship another shot if you are." - Lex Luthor

Formerly one on one


Steve
I'm a PC, so shut up
Consultant
join:2001-03-10
Yorba Linda, CA

said by superman See Profile:

what does that do?
It says that when a request for the file dcp_0252.jpg (Kasia's pretty lake photograph) arrives other than when referred from her own website, it sends a different image: /images/ebayscam.jpg. This means the image works fine in her own gallery, but those who leech the image get something else.

I suppose it could have been more fine-tuned by looking for "match eBay referrer" rather than "anything other than my own referrer", so this breaks any other links that might be out there now.

Steve
--
Stephen J. Friedl • Unix Wizard • Microsoft Security MVP • Tustin, California USA • my web site
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersTrying To Use Same look on diff Pages »
« Need software for creating web page  


Wednesday, 02-Dec 06:59:27 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.
page compression OFF
Most commented news this week
· [151] Comcast Releasing Promised Usage Meter
· [69] Baltimore To Ban Lazy Cable Installs
· [57] Latest Consumer Reports Survey Not Kind To AT&T
· [56] Broadband Killed The Game Console
· [52] Rogers Unveils The ISP Dream Model
· [44] ACTA: Global Three Strikes
· [41] Rural Carriers Quickly Embracing Fiber
· [35] Charter Exits Chapter 11
· [33] AT&T Top Lobbyist Cicconi Has His Feelings Hurt
· [26] Vivendi Agrees, Comcast/NBC Deal Soon
Most people now reading
· [Newsgroups] Newzleech down? [Filesharing Software]
· cleaning LCD [General Questions]
· Vundo on facebook? [Security]
· Windows 7 boot manager editing questions [Microsoft Help]
· [WIN7] Outlook express under Windows 7? [Microsoft Help]
· Security Software Updates - 1 Dec 2009 [Security]
· Maximizing Rogue DPS for ToC/ToGC (3.x) [World of Warcraft]
· Ooma changing features [VOIP Tech Chat]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]