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.


14049 posts

Uber Geek
+1 received by user: 2512

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

Uber Geek
+1 received by user: 11843

Administrator
Trusted
Geekzone
Lifetime subscriber



14049 posts

Uber Geek
+1 received by user: 2512

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


14203 posts

Uber Geek
+1 received by user: 1825


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

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



14049 posts

Uber Geek
+1 received by user: 2512

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

Uber Geek
+1 received by user: 651

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.








14049 posts

Uber Geek
+1 received by user: 2512

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




14049 posts

Uber Geek
+1 received by user: 2512

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 »

The Warehouse leaps into the AI future with Google
Posted 15-Aug-2018 17:56


Targus set sights on enterprise and consumer growth in New Zealand
Posted 13-Aug-2018 13:47


Huawei to distribute nova 3i in New Zealand
Posted 9-Aug-2018 16:23


Home robot Vector to be available in New Zealand stores
Posted 9-Aug-2018 14:47


Panasonic announces new 2018 OLED TV line up
Posted 7-Aug-2018 16:38


Kordia completes first live 4K TV broadcast
Posted 1-Aug-2018 13:00


Schools get safer and smarter internet with Managed Network Upgrade
Posted 30-Jul-2018 20:01


DNC wants a safer .nz in the coming year
Posted 26-Jul-2018 16:08


Auldhouse becomes an AWS Authorised Training Delivery Partner in New Zealand
Posted 26-Jul-2018 15:55


Rakuten Kobo launches Kobo Clara HD entry level reader
Posted 26-Jul-2018 15:44


Kiwi team reaches semi-finals at the Microsoft Imagine Cup
Posted 26-Jul-2018 15:38


KidsCan App to Help Kiwi Children in Need
Posted 26-Jul-2018 15:32


FUJIFILM announces new high-performance lenses
Posted 24-Jul-2018 14:57


New FUJIFILM XF10 introduces square mode for Instagram sharing
Posted 24-Jul-2018 14:44


OPPO brings advanced technology to the smartphone market with new device
Posted 24-Jul-2018 09:20



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.