![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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... ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
jellyfish
![]() ![]() Join Date: Dec 2003
Posts: 71,528
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Dec 2003
Posts: 11,089
|
are you using a linux or windows server?
__________________
... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
emperor of my world
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
|
Quote:
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.. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |