Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




14354 posts

Uber Geek
+1 received by user: 2608

Trusted
Subscriber

Topic # 151422 25-Aug-2014 09:06
Send private message

My headphones website has hotlink protection in place as a lot of places seem to want to hotlink my images, but it's not working quite right - nothing shows on the website that does the hotlink. I'll hotlink one right below this text



I doubt it shows up. This image (link) is what's meant to show up.

In my logs I see things like this - a 302 redirect

36.81.129.249 - - [24/Aug/2014:07:21:50 -0500] "GET /home2/timmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.kaskus.co.id/thread/000000000000000014660334/puuma-headphone-headsetsennheiserrazersteelseriesozone-dll-harga-kaki-lima" "Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0"

I did notice a message in my browser about a redirect loop at one point but I can't reproduce it.

Here's the applicable parts of my htaccess file

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?headphonereviews.org [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ bw.gif [NC,R,L]

Anyone know what's up?

Update - logs from this thread. Seems there's some kind of weird loop going on.

111.69.152.28 - - [24/Aug/2014:16:06:35 -0500] "GET /headphonepics/518.jpg HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:35 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:35 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:35 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:35 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:35 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:35 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:36 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:36 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:36 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:36 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:36 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:36 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:36 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:36 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:36 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:37 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:38 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:38 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:38 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:38 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:38 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:38 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:38 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:38 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:38 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:39 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:39 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 321 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"
111.69.152.28 - - [24/Aug/2014:16:06:39 -0500] "GET /home2/timmmay/public_html/hr/bw.gif HTTP/1.1" 302 313 "http://www.geekzone.co.nz/forums.asp?forumid=48&topicid=151422" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36"




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Filter this topic showing only the reply marked as answer Create new topic


14354 posts

Uber Geek
+1 received by user: 2608

Trusted
Subscriber

  Reply # 1114962 25-Aug-2014 10:30
Send private message

Ah, the problem could be that the bw.gif image is under hotlink protection. Any idea how I get around that?




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


 
 
 
 


14480 posts

Uber Geek
+1 received by user: 1907


  Reply # 1114966 25-Aug-2014 10:43
Send private message

The best person to help will be the host. Maybe a hosting configuration problem.



14354 posts

Uber Geek
+1 received by user: 2608

Trusted
Subscriber

  Reply # 1114989 25-Aug-2014 11:11
Send private message

I could ask support but it's not a host specific problem.




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Webhead
2175 posts

Uber Geek
+1 received by user: 723

Moderator
Trusted
Lifetime subscriber

  Reply # 1115034 25-Aug-2014 11:59
One person supports this post
Send private message

This link should show you how to do it: http://altlab.com/htaccess_tutorial.html

For the replacement image, use something like Google hosted, Dropbox, Imgur (or another domain) to avoid the loop.

That said, be aware that there are some situations where the browsers won't pass along a referer, so you could end up showing the hotlink image to people actually visiting your site.








14354 posts

Uber Geek
+1 received by user: 2608

Trusted
Subscriber

  Reply # 1115079 25-Aug-2014 12:48
Send private message

Ah so basically get it off the server. I wonder if tubgirl is still active ;) I have a dozen domains but I think all are hotlink protected, dropbox might work, didn't know you could do that easily. It's a moderate volume website so would get a bit of traffic.




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer




14354 posts

Uber Geek
+1 received by user: 2608

Trusted
Subscriber

  Reply # 1115122 25-Aug-2014 13:35
Send private message

Uploaded the image to imgur, all done. Thanks Jarledb! :)




AWS Certified Solution Architect Professional, Sysop Administrator Associate, and Developer Associate
TOGAF certified enterprise architect
Professional photographer


Filter this topic showing only the reply marked as answer Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Geekzone Live »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.