WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Webmaster Resources Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Webmaster Resources Discussion Forum Sitemaps and robots and logfiles -- Oh My! If you have any questions, comments, concerns and/or ideas about the tools currently available to webmasters to make their lives... 'easier'. Here's where you need to be. Know of a good tool? Post it here. Got something funny in your logfiles? Maybe we can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-18-2007, 08:46 PM
WebProWorld Member
 

Join Date: Aug 2003
Location: Canada
Posts: 58
funbiz RepRank 0
Angry How to stop someone hot linking my graphic

This might not be the right place.

I am sure this been ask before,
how to stop someone hot linking my graphics?

Thanks for any help.
__________________
Link-Referral
Free Backlinks
Reply With Quote
  #2 (permalink)  
Old 09-18-2007, 11:27 PM
WebProWorld Pro
 

Join Date: Aug 2006
Location: Cary, Illinois
Posts: 160
getmea RepRank 0
Default Re: How to stop someone hot linking my graphic

Your web host should have a setting to prevent this activity. My web host's vDeck system has an option under Settings to disable HotLinking.

Getmea
__________________
Skateboards and iPods...what a combination!
http://www.getmea-skateboard.com
Reply With Quote
  #3 (permalink)  
Old 09-19-2007, 11:12 AM
WebProWorld Member
 

Join Date: Mar 2006
Posts: 56
linkstraffic RepRank 0
Default Re: How to stop someone hot linking my graphic

you can require the image loading from your pages only using the htaccess file.
I don't remember the line but you can check the documentation of htaccess from Apache
Reply With Quote
  #4 (permalink)  
Old 09-19-2007, 03:44 PM
WebProWorld Pro
 

Join Date: May 2007
Location: DataCenter
Posts: 174
hostBrain RepRank 1
Default Re: How to stop someone hot linking my graphic

Here ya go, put this in htaccess
Quote:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?domain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]
create a very small file called nohotlink.jpg, which will replace the pic they are hotlinking to.
In the image, you could say "Stolen from www.yourdomain.com"
__________________
----Don't Call Me Brian----
Reply With Quote
  #5 (permalink)  
Old 03-20-2008, 06:54 PM
WebProWorld Member
 

Join Date: Jun 2004
Location: Uruguay
Posts: 84
Portucuenta RepRank 0
Default Re: How to stop someone hot linking my graphic

Is there a way to only disallow images from a folder for being hotlinked??

Thanks in advance
__________________
http://www.zycu.com/
Win trillionz
Reply With Quote
  #6 (permalink)  
Old 03-21-2008, 09:14 AM
wige's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jun 2006
Location: United States
Posts: 1,722
wige RepRank 4wige RepRank 4wige RepRank 4wige RepRank 4
Default Re: How to stop someone hot linking my graphic

Yes. Simply create a new .htaccess file in the folder you want to protect, with the above suggested directives. That will only cause that specific folder and it's subfolders to be blocked.
__________________
The best way to learn anything, is to question everything.
Interestingly Average Security Blog
Reply With Quote
  #7 (permalink)  
Old 06-14-2008, 06:45 PM
WebProWorld Member
 

Join Date: Jul 2003
Location: Ohio
Posts: 26
obietemp RepRank 0
Wink Re: How to stop someone hot linking my graphic

This happened to me once and I changed the picture they were using to my business logo, keeping the name the same. Then my logo picture was on their site.

Of course I then I changed the name to the picture they had been using and relinked to my page.

Thought it would be funny and I got a kick out of it.
__________________
ObieTemp
Reply With Quote
  #8 (permalink)  
Old 06-15-2008, 10:59 AM
WebProWorld Member
 

Join Date: Dec 2007
Location: Brussels, Belgium
Posts: 91
Jean-Luc RepRank 1
Default Re: How to stop someone hot linking my graphic

hostBrain' solution is fine, but you might want to add other authorized referrers, like the pages in Google cache.

Jean-Luc
__________________
Checking redirects is now as easy as 1 2 3, even if you are not a HTTP-header guru !
AWStats Support: installation assistance, add-on's, extra sections, dedicated forum,...
Reply With Quote
  #9 (permalink)  
Old 06-20-2008, 04:14 PM
WebProWorld Pro
 

Join Date: Nov 2004
Location: Davis, North Carolina
Posts: 198
LLFitness_Derek RepRank 0
Default Re: How to stop someone hot linking my graphic

IMO image control is best done through calling a script for the image and not linking directly to the image.

Normal image (no scripts):
Code:
<img src='image.jpg'>
New image (scripts):
Code:
<img src='myimagescript.php?image=image.jpg'>
On your new scripting page myimagescript.php you can write all the validation code you desire before displaying the images. You can check a users is log-in status, check the referral url, etc...
Reply With Quote
  #10 (permalink)  
Old 06-23-2008, 11:02 PM
cw1865's Avatar
WebProWorld Veteran
 

Join Date: Oct 2007
Location: Reside in Riverdale, NJ
Posts: 643
cw1865 RepRank 1
Default Re: How to stop someone hot linking my graphic

Quote:
Originally Posted by obietemp View Post
This happened to me once and I changed the picture they were using to my business logo, keeping the name the same. Then my logo picture was on their site.

Of course I then I changed the name to the picture they had been using and relinked to my page.

Thought it would be funny and I got a kick out of it.
Thought it would be funny...it is funny. That'll teach 'em!
__________________
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Webmaster Resources Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop The Proxy jonsavvy Internet Security Discussion Forum 6 04-13-2006 12:20 AM
How do I stop unwanted sites from linking to me? ritaperdue Link Exchange 5 05-29-2005 10:43 AM
Stop the PR madness!!!! TippMan Google Discussion Forum 0 01-05-2005 06:23 PM
make it stop.... volkoman Breakroom (General: Any Topic) 0 04-22-2004 10:20 PM
programme to stop hot linking admin100 Breakroom (General: Any Topic) 6 02-18-2004 05:20 PM


Search Engine Optimization by vBSEO 3.2.0