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.




13551 posts

Uber Geek
+1 received by user: 2321

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

Uber Geek
+1 received by user: 10777

Administrator
Trusted
Geekzone
Lifetime subscriber



13551 posts

Uber Geek
+1 received by user: 2321

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


 
 
 
 


13534 posts

Uber Geek
+1 received by user: 1647


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

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



13551 posts

Uber Geek
+1 received by user: 2321

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

Uber Geek
+1 received by user: 561

Trusted
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.








13551 posts

Uber Geek
+1 received by user: 2321

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




13551 posts

Uber Geek
+1 received by user: 2321

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 »

CPTPP text and National Interest Analysis released for public scrutiny
Posted 21-Feb-2018 19:43


Foodstuffs to trial digitised shopping trolleys
Posted 21-Feb-2018 18:27


2018: The year of zero-login, smart cars & the biometrics of things
Posted 21-Feb-2018 18:25


Intel reimagines data centre storage with new 3D NAND SSDs
Posted 16-Feb-2018 15:21


Ground-breaking business programme begins in Hamilton
Posted 16-Feb-2018 10:18


Government to continue search for first Chief Technology Officer
Posted 12-Feb-2018 20:30


Time to take Appleā€™s iPad Pro seriously
Posted 12-Feb-2018 16:54


New Fujifilm X-A5 brings selfie features to mirrorless camera
Posted 9-Feb-2018 09:12


D-Link ANZ expands connected smart home with new HD Wi-Fi cameras
Posted 9-Feb-2018 09:01


Dragon Professional for Mac V6: Near perfect dictation
Posted 9-Feb-2018 08:26


OPPO announces R11s with claims to be the picture perfect smartphone
Posted 2-Feb-2018 13:28


Vocus Communications wins a place on the TaaS panel
Posted 26-Jan-2018 15:16


SwipedOn raises $1 million capital
Posted 26-Jan-2018 15:15


Slingshot offers unlimited gigabit fibre for under a ton
Posted 25-Jan-2018 13:51


Spark doubles down on wireless broadband
Posted 24-Jan-2018 15:44



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.