Webmaster Forum


Go Back   Webmaster Forum > Web Development > Blogging Forum

Blogging Forum Discuss general blogging issues here - design, integration, posting, trackbacks, ETC. Also discuss blogs you like.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 03-17-2009, 11:46 AM
~kev~'s Avatar
v7n Mentor
 
Join Date: 02-06-08
Location: Texas
Posts: 1,528
iTrader: 0 / 0%
How do I protect from hotlinking?

I want to protect my site and my images from hotlinking. What is the best way to do this?
__________________
survival gear
 
Reply With Quote
  #2 (permalink)  
Old 03-17-2009, 12:05 PM
Contributing Member
Latest Blog:
None

 
Join Date: 08-08-08
Posts: 101
iTrader: 0 / 0%
Well you can use a Flash script to open the images. Then people don't know the web address of the images.
 
Reply With Quote
  #3 (permalink)  
Old 03-17-2009, 05:57 PM
Contributing Member
Latest Blog:
None

 
Join Date: 02-20-09
Posts: 102
iTrader: 0 / 0%
Throw a .htaccess file in your domain root that contains the following....

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?YOURDOMAINNAME.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

That will stop anyone hotlinking your images.
__________________
Brandon Hill
Publisher Support Manager
support @ intersharkmedia.com
 
Reply With Quote
  #4 (permalink)  
Old 03-17-2009, 06:25 PM
~kev~'s Avatar
v7n Mentor
 
Join Date: 02-06-08
Location: Texas
Posts: 1,528
iTrader: 0 / 0%
Quote:
Originally Posted by InterShark View Post
Throw a .htaccess file in your domain root that contains the following....

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?YOURDOMAINNAME.com [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ - [NC,F,L]

That will stop anyone hotlinking your images.
Thank you, but for some reason that did not work. I already have an ,htaccess file in the root, so I added that code at the very bottom.
__________________
survival gear
 
Reply With Quote
  #5 (permalink)  
Old 03-17-2009, 07:32 PM
Contributing Member
Latest Blog:
None

 
Join Date: 02-20-09
Posts: 102
iTrader: 0 / 0%
Post the code you have ill fix it up for you
__________________
Brandon Hill
Publisher Support Manager
support @ intersharkmedia.com
 
Reply With Quote
  #6 (permalink)  
Old 03-17-2009, 08:12 PM
Contributing Member
Latest Blog:
None

 
Join Date: 07-06-08
Location: Pearl of Asia
Posts: 1,990
iTrader: 0 / 0%
Hello, I don't mean to interrupt the discussion but I would like to ask - what is hotlinking?
 
Reply With Quote
  #7 (permalink)  
Old 03-18-2009, 01:28 AM
zeruel's Avatar
v7n Mentor
 
Join Date: 03-28-07
Location: PH
Posts: 4,346
iTrader: 0 / 0%
Quote:
Originally Posted by Jenie0109 View Post
Hello, I don't mean to interrupt the discussion but I would like to ask - what is hotlinking?
Also called as bandwidth theft, direct linking and inline linking.

http://en.wikipedia.org/wiki/Bandwidth_theft
__________________
Panda Lover
Tweet Me, Maybe?
"Life is what you make it, so lets make it rock!"
 
Reply With Quote
  #8 (permalink)  
Old 03-18-2009, 05:46 AM
~kev~'s Avatar
v7n Mentor
 
Join Date: 02-06-08
Location: Texas
Posts: 1,528
iTrader: 0 / 0%
Quote:
Originally Posted by Jenie0109 View Post
Hello, I don't mean to interrupt the discussion but I would like to ask - what is hotlinking?
Its when you have an image on your server, and someone embeds the image in their site. Sites like photobucket, that is the service they offer. You upload the image to photobucket, and then embed the image into different sites.

But in my case, I do not give other people permission to do this. Every time the image is refreshed on that other persons site, my server has to process the image.

It does not sound like its a big deal. But if you have people leaching hundreds of images, it can have a VERY serious impact on your server performance.



Quote:
Originally Posted by InterShark View Post
Post the code you have ill fix it up for you
Thank you. I will have to wait until this evening to post the .htaccess file, I'am at work right now.
__________________
survival gear
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Blogging Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Hotlinking Alexandro Coding Forum 2 05-23-2007 11:46 PM
.htaccess hotlinking help... please... JuggoPop Coding Forum 17 05-04-2006 12:03 AM
404- hotlinking not allowed MrMup04 Coding Forum 1 08-25-2004 10:54 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:57 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.