Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-27-2005, 12:46 PM   #1
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
what the FUCK im doing wrong. htaccess anti hotlink help please.

im posting this here cuz noone barely goes to the webmaster q n a forum.
i got this code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?hotlinksite\.com/ [NC]
RewriteRule \.(gif|jpe?g|png)$ http://www.mydomain.com/des/test/hotlinkimg-d.gif [NC,L]

hotlinksite.com is the site that has permission to hotlink from my domain.
The anti hotlink works perfect. But that fucking substitute image just won't appear on sites that dont have hotlink privileges!
I already checked fusionx's tut but i tried everything, i looked on the fucking web all over and they give the same fucking code but it doesnt fucking work! Could someone please help me with this shit...
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2005, 12:47 PM   #2
Manowar
jellyfish  
 
Join Date: Dec 2003
Posts: 71,528
http://altlab.com/htaccess_tutorial.html
Manowar is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2005, 12:55 PM   #3
NinjaSteve
Too lazy to set a custom title
 
Industry Role:
Join Date: Dec 2003
Posts: 11,089
are you using a linux or windows server?
__________________
...
NinjaSteve is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2005, 01:10 PM   #4
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
Quote:
Originally Posted by NinjaSteve
are you using a linux or windows server?
lol i dont know! i got a host, i pay every month a bill i aint got my own server... and i dont know shit about servers either.
Anyway, with the help of manowars link (thanks) i looked a bit closer and it seems that the image url for the hotlink image CAN NOT be your whole url where the image is hosted for some weird reason.... only the dirs. Thats prett strange if u ask me. But it works:

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?hotlinksite\.com/ [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ des/test/hotlinkimg-d.gif [L]


^^^ check the last line, i did it without http://www.mydomain.com/ and now it does work. Crazy shit, i hate these kinda code jobs there always something wrong that noone can explain and totally unlogical. Doom the fucking nerds that invented this haha..
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-27-2005, 01:16 PM   #5
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
ok another thing:
which sites can hotlink my images! I got google in the code already like this:
RewriteCond %{HTTP_REFERER} !^http://(www\.)?google\.com/ [NC]
but if im coorect does yahoo have the option for surfers to create their crappy personal homesites? if so, when i put this code in:
RewriteCond %{HTTP_REFERER} !^http://(www\.)?yahoo\.com/ [NC]
Those freeloaders on a yahoo directory website can still fucking hotlink!

Plus i want a list of people who are experienced with what sites not to block, like a list with (image) searchengines or something, so my images will still pop up there!
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.