Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: Re[2]: FN-FORUM Site Logs

date posted 13th June 2002 15:08

> hope you don't mind me asking but how does that script work

Not at all, it's fairly straitforward...

First, obviously you have to replace all image tags with a call to the
script, e.g. instead of

you would use


The script itself checks the referer asking for the image, e.g. in Perl
$ENV{'HTTP_REFERER'}

It then compares this to a list of allowed referring servers. If it's on the
list, it opens the image file requested (you will have to map the URL path
to a local file path) and writes the entire file out to the browser
(remembering to send the correct content-type header first, e.g.
Content-type: image/jpeg).

If the referer is not on the list, it just redirects the user to the default
"this image has been stolen" picture. It also writes to a log file of "bad
sites" so that my friend then has the URL of the offending page in his log,
and he can surf on over there and email the owner a warning too if he wants
to.

Finally, if you're using this method then it's not necessary (indeed, not
really desireable) to keep your images within a publicly accessible web
directory - you can move all of the images somewhere else on the hard disk,
and as long as the script has access to them then the script provides the
only public interface onto the images.

Once you know the URL of the page stealing your images, you can have even
more fun. Somebody on a list I'm on (don't think it was this one, was it?)
had their photo stolen by somebody who was scamming on Ebay - the scammer
wanted to give himself a false ID and wanted to put on a human face, only
not his own. The guy whose photo it was discovered that this was being done,
and replaced it on his server with another picture which basically said "I
am a scammer and a rip-off merchant. I have set up this new false ID because
all my other many Ebay accounts have been closed down because I conned
people. Do not buy anything from me unless you want to lose your money".

Dan Sumption
http://www.pernoctator.com - Business
http://www.sumption.org - Pleasure
http://www.bradonpace.com - Up a level



Messages by Day
June 30th 2002
June 29th 2002
June 28th 2002
June 27th 2002
June 26th 2002
June 25th 2002
June 24th 2002
June 23rd 2002
June 22nd 2002
June 21st 2002
June 20th 2002
June 19th 2002
June 18th 2002
June 17th 2002
June 16th 2002
June 15th 2002
June 14th 2002
June 13th 2002
June 12th 2002
June 11th 2002
June 10th 2002
June 9th 2002
June 8th 2002
June 7th 2002
June 6th 2002
June 5th 2002
June 4th 2002
June 3rd 2002
June 2nd 2002
June 1st 2002


Messages by Month
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000