DelphiFAQ Home Search:

How to block others from using images on my web site


comments5 comments. Current rating: 4 stars (2 votes). Leave comments and/ or rate it.


How can I prevent other web sites from using images on my web server?


You cannot really do much against them keeping a copy of the image on their server. You could apply a digital watermark to your images that is invisible to the human eye and - depending on the technology - will stay in there after basic image editing.
That way, if someone steals your image, at least you can prove that they are your images and possibly sue because of copyright infringement. (Make sure to have a disclaimer that all content is copyrighted).

You can do something against what is called 'Hot linking' - which is when the hostile web site directly links to the images on your domain. Not only do those webmasters steal your content, they even steal your bandwidth!

If you use the apache web server, then you can put the following code in the .htaccess file. This .htaccess file should be in the www root directory or in any subdirectory where you want files to be protected from hotlinking:

This solution bases on apache's mod_rewrite. It also relies on the HTTP_REFERER field, which means that a very small number of users who block the REFERER header, wil be able to see the stolen images. (This is less than 1% of all surfers according to my experience.)
In the first section the htaccess file lists a few domains that shall be allowed to retrieve images. No referrer, your own domain, 'another domain you want', altavista web site translation etc are allowed.
Make sure to replace in there with your actual domain name, otherwise your pages will show up without images.

The document /blank.html should be an existing document, otherwise your web server will throw an 404 error into your logs, looks bad. To save bandwidth, just create a file of length 0 bytes and save it as blank.html in your root.

RewriteEngine On
Options +FollowSymlinks

RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://([a-z0-9-]+\.)* [NC]
RewriteCond %{HTTP_REFERER}!^http://([a-z0-9-]+\.)* [NC]
RewriteCond %{HTTP_REFERER}!^http://([a-z0-9-]+\.)* [NC]
RewriteCond %{HTTP_REFERER}!toolbar.googl [NC]
RewriteCond %{HTTP_REFERER}!/search\?q=cache: [NC]
RewriteCond %{HTTP_REFERER}!/search\?sourceid=navclient [NC]
RewriteCond %{HTTP_REFERER}!/translate_c\?hl= [NC]
RewriteRule .*\.(gif¶GIF¶jpg¶JPG)$ - [F]

ErrorDocument 403 /blank.html
Options -Indexes 

Content-type: text/html


2006-09-19, 16:40:37 from Korea (R)  
Google preved rodnoy!
2011-10-30, 13:15:57
Name: Anastasya Bogatyreva


Mira 98 Apartment 63
Yoshkar-Ola Russia

Other Comments:
She is working by
I met as Nastya63 from Tambov-Russia
Now is fishing as Radina63 from Brighton U.K.
IP address is from Yoshkar-Ola
Profession declare as lawyer in police
She made phone call by mobile phone : 0079177044928 (as her friend number)
Name and email change every time.

Following from her profile :

General information:
I the usual girl! At me good character! I like to spend time On the nature! Still it is pleasant to read the book! I work Lawyer in Poli—Āe! I will not tell Certainly, that this work is pleasant to me! But I think to the majority of people it is not pleasant Their work! Smile!

My growth 175 cm! My weight 51 kg! A usual constitution! I the blonde! It is pleasant to me Classical clothes!

Looking for:
I search for the person who appreciated me and respected! I do not like those people which Look only at a figure! I think, in the person the main thing its private world! And In general I think, that in relations the main thing! Honesty, understanding, trust and fidelity!

This image was also posted here:
Scammer Jane Mabou from Ivory Coast, Africa

2011-10-31, 10:08:09

2011-10-31, 10:10:32
Anastasya, Bogatyreva, Nastya63, Radina63, Tambov, Yoshkar Ola, Brighton
This image was also posted here:
Dating scammer Gen. John Miller

2014-10-29, 09:50:38
yuda from Indonesia  
Buat Togeller Yang Sering Kalah, ini saatnya anda harus Menang..!!! Silahkan Hub: 085319654747 trmh ksih....



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: