Webmaster Forum

Go Back   Webmaster Forum > Blogging > 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
Old 03-17-2009, 12:46 PM   #1 (permalink)
Moderator
 
~kev~'s Avatar
 
Join Date: 02-06-08
Location: Texas
Posts: 851
iTrader: 0 / 0%
~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro
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?
__________________
team fortress | camera forum
~kev~ is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-17-2009, 01:05 PM   #2 (permalink)
Contributing Member
 
Join Date: 08-08-08
Posts: 94
iTrader: 0 / 0%
Latest Blog:
None

Sid Software is liked by many
Well you can use a Flash script to open the images. Then people don't know the web address of the images.
Sid Software is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-17-2009, 06:57 PM   #3 (permalink)
Contributing Member
 
Join Date: 02-20-09
Posts: 102
iTrader: 0 / 0%
Latest Blog:
None

InterShark is liked by many
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
InterShark is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-17-2009, 07:25 PM   #4 (permalink)
Moderator
 
~kev~'s Avatar
 
Join Date: 02-06-08
Location: Texas
Posts: 851
iTrader: 0 / 0%
~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro
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.
__________________
team fortress | camera forum
~kev~ is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-17-2009, 08:32 PM   #5 (permalink)
Contributing Member
 
Join Date: 02-20-09
Posts: 102
iTrader: 0 / 0%
Latest Blog:
None

InterShark is liked by many
Post the code you have ill fix it up for you
__________________
Brandon Hill
Publisher Support Manager
support @ intersharkmedia.com
InterShark is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-17-2009, 09:12 PM   #6 (permalink)
Contributing Member
 
Join Date: 07-07-08
Location: Pearl of Asia
Posts: 1,957
iTrader: 0 / 0%
Latest Blog:
None

Jenie0109 is a splendid one to beholdJenie0109 is a splendid one to beholdJenie0109 is a splendid one to beholdJenie0109 is a splendid one to beholdJenie0109 is a splendid one to beholdJenie0109 is a splendid one to beholdJenie0109 is a splendid one to beholdJenie0109 is a splendid one to beholdJenie0109 is a splendid one to beholdJenie0109 is a splendid one to beholdJenie0109 is a splendid one to behold
Hello, I don't mean to interrupt the discussion but I would like to ask - what is hotlinking?
__________________
Professional SEO Company || SEO Packages
Jenie0109 is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-18-2009, 02:28 AM   #7 (permalink)
v7n Mentor
 
zeruel's Avatar
 
Join Date: 03-28-07
Location: SouthEast
Posts: 3,530
iTrader: 0 / 0%
zeruel is a web professional of the highest orderzeruel is a web professional of the highest orderzeruel is a web professional of the highest orderzeruel is a web professional of the highest orderzeruel is a web professional of the highest orderzeruel is a web professional of the highest orderzeruel is a web professional of the highest orderzeruel is a web professional of the highest orderzeruel is a web professional of the highest orderzeruel is a web professional of the highest orderzeruel is a web professional of the highest order
Send a message via Yahoo to zeruel Send a message via Skype™ to zeruel
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
__________________
Car Pics And Reviews
Non Conforming Loan
"You are my exact brand of heroine..."
zeruel is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-18-2009, 06:46 AM   #8 (permalink)
Moderator
 
~kev~'s Avatar
 
Join Date: 02-06-08
Location: Texas
Posts: 851
iTrader: 0 / 0%
~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro~kev~ is a highly respected web pro
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.
__________________
team fortress | camera forum
~kev~ is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Blogging > 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 On
Pingbacks are On
Refbacks are On


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


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 04:00 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.