Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Image Hotlinking Redirection


  • Please log in to reply
2 replies to this topic

#1 Romeo29

Romeo29

    Learning To Bleep


  • Members
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:10:41 AM

Posted 04 December 2010 - 07:54 PM

Hi,

If someone hotlinks images from your website, then i can use .htaccess to either block it or show another image. But is there any way to redirect that hotlinking page to my site's page?

I want them to redirect to the original web page of my site where that image actually was used by me.

Also one more question, if i use .htaccess to block the images will Google Image Search be able to show them in search results?

Thanks :)

Edited by Romeo29, 04 December 2010 - 07:56 PM.


BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:09:41 AM

Posted 05 December 2010 - 09:41 AM

But is there any way to redirect that hotlinking page to my site's page?

Maybe. But from a user standpoint if I get redirected to a page that I didn't request, I am not going to react very favorably to the that page. Regardless of the situation, I would blame the end site for hijacking me. The better choice would be to send back an image that says "This site is attempting to steal an image from blah, blah, blah..." and give the user the option of typing in your url and viewing your site.

if i use .htaccess to block the images will Google Image Search be able to show them in search results

From what I have seen, sometimes yes and sometimes no. I suppose that since there are countless ways to configure a server that there is no definitive answer for your question. I did find a thread that may help you accomplish what you want. You may have seen it already:
Link

The Google term I used for searching was 'googlebots htaccess to images' and 'googlebots htaccess to images prevent hotlink'. The first search seemed more relevant to your question.

#3 Romeo29

Romeo29

    Learning To Bleep

  • Topic Starter

  • Members
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:10:41 AM

Posted 05 December 2010 - 03:31 PM

Thanks groovicus :)
You are right it would be a mistake to redirect to page. Following your advice, I chose to show a tiny message picture instead. :)
I added google. because it has many TLDs so it matches all .com, .co.uk etc. Same goes for Yahoo!. I don't know if Bing also has many TLDs but I did same for it.
Thanks again for the link and the information :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users