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.


13974 posts

Uber Geek
+1 received by user: 2488

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
BDFL - Memuneh
60800 posts

Uber Geek
+1 received by user: 11675

Administrator
Trusted
Geekzone
Lifetime subscriber



13974 posts

Uber Geek
+1 received by user: 2488

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


14098 posts

Uber Geek
+1 received by user: 1790


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

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



13974 posts

Uber Geek
+1 received by user: 2488

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
2022 posts

Uber Geek
+1 received by user: 645

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.








13974 posts

Uber Geek
+1 received by user: 2488

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




13974 posts

Uber Geek
+1 received by user: 2488

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:





News »

Microsoft Dynamics 365 Business Central launches
Posted 10-Jul-2018 10:40


Spark completes first milestone in voice platform upgrade
Posted 10-Jul-2018 09:36


Microsoft ices heated developers
Posted 6-Jul-2018 20:16


PB Technologies charged for its extended warranties and warned for bait advertising
Posted 3-Jul-2018 15:45


Almost 20,000 people claim credits from Spark
Posted 29-Jun-2018 10:40


Cove sells NZ's first insurance policy via chatbot
Posted 25-Jun-2018 10:04


N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34


Enable doubles fibre broadband speeds for its most popular wholesale service in Christchurch
Posted 2-Jun-2018 20:07



Geekzone Live »

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



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.