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.


13841 posts

Uber Geek
+1 received by user: 2451

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


13841 posts

Uber Geek
+1 received by user: 2451

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


13919 posts

Uber Geek
+1 received by user: 1754


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

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



13841 posts

Uber Geek
+1 received by user: 2451

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

Uber Geek
+1 received by user: 628

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.








13841 posts

Uber Geek
+1 received by user: 2451

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




13841 posts

Uber Geek
+1 received by user: 2451

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 »

IBM leads Call for Code to use cloud, data, AI, blockchain for natural disaster relief
Posted 25-May-2018 14:12


New FUJIFILM X-T100 aims to do better job than smartphones
Posted 24-May-2018 20:17


Stuff takes 100% ownership of Stuff Fibre
Posted 24-May-2018 19:41


Exhibition to showcase digital artwork from across the globe
Posted 23-May-2018 16:44


Auckland tops list of most vulnerable cities in a zombie apocalypse
Posted 23-May-2018 12:52


ASB first bank in New Zealand to step out with Garmin Pay
Posted 23-May-2018 00:10


Umbrellar becomes Microsoft Cloud Solution Provider
Posted 22-May-2018 15:43


Three New Zealand projects shortlisted in IDC Asia Pacific Smart Cities Awards
Posted 22-May-2018 15:14


UpStarters - the New Zealand tech and innovation story
Posted 21-May-2018 09:55


Lightbox updates platform with new streaming options
Posted 17-May-2018 13:09


Norton Core router launches with high-performance, IoT security in New Zealand
Posted 16-May-2018 02:00


D-Link ANZ launches new 4G LTE Dual SIM M2M VPN Router
Posted 15-May-2018 19:30


New Panasonic LUMIX FT7 ideal for outdoor: waterproof, dustproof
Posted 15-May-2018 19:17


Ryanair Goes All-In on AWS
Posted 15-May-2018 19:14


Te Papa and EQC Minecraft Mod shakes up earthquake education
Posted 15-May-2018 19:12



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.