Page 2 of 2

Re: Anti-hotlinking .htaccess code not working

Posted: Wed Apr 01, 2009 11:05 am
by intellivision
Ahhhh I briefly thought about the regex for handling case, but NC is much more elegant. Thanks!

Re: Anti-hotlinking .htaccess code not working

Posted: Wed Apr 01, 2009 2:20 pm
by josh
Right, otherwise people could "hack" it by changing to jPg for example. The other thing is some plugins do not pass this. For instance we ran a video hosting site and lost almost a TB of bandwidth overnight due to not realizing windows media player does not send the header at all. Luckily I was on an unmetered pipe. I had to make it generate and store a 1 time use token and validate that token with a php script, the thing is that broke the "streaming" / "Seeking" functionality of the wmv player, so further hacks had to be put in place to make it a seamless solution.

The thing is I'd rather watermark my images. I'd almost rather someone hotlink me and I get the eyes on my content, I see it kind of like the record industry and how they restrict content. But since the company that offered the unmetered line went into bankruptcy now I have to actually pay for my bandwidth :-(

Re: Anti-hotlinking .htaccess code not working

Posted: Wed Apr 01, 2009 5:10 pm
by php_east
intellivision wrote: If you can see this, it's still not working: Image
Anyone have any ideas why?
->intellivision
have you changed the rewrites ? i wonder why am i still seeing the car ?
just curious. ( cleared me browser cache )

Re: Anti-hotlinking .htaccess code not working

Posted: Wed Apr 01, 2009 5:38 pm
by intellivision
@php_east
I haven't implemented it yet. I just tested it briefly yesterday. I'm seeing idiot leechers on eBay selling odometer gears, and for the Volvo gear guess whose forty ~70k images they're displaying in their auction? Yep.

But one of those sellers is an advertiser on my site, so I'm giving him a couple days to make arrangements. :roll: Like I said, it's complicated.

@josh
I'm on a virtual private server, so bandwidth/cpu is something I have to watch. I have 8 or so of my sites on it and 8 or so client sites, so it must be running smoothly 24/7. Interesting about the stolen TB bandwidth 8O.

Re: Anti-hotlinking .htaccess code not working

Posted: Thu Apr 16, 2009 5:23 pm
by intellivision
Ok, finally implemented this. One more question: anyone have any ideas why it's not swapping out for hotlink.gif? Is it getting caught in a catch-22 because hotlink.gif is hosted on the same domain that's being protected?

There is an image below this line:

Image

^^^ The image above should have its URL rewritten to show http://www.matthewsvolvosite.com/images/hotlink.gif

Re: Anti-hotlinking .htaccess code not working

Posted: Thu Apr 16, 2009 9:18 pm
by Benjamin
Is this a tech support forum? Oh.. no it's general discussion. My Bad.

We seriously just need to stop replying to posts in the wrong forum.

Re: Anti-hotlinking .htaccess code not working

Posted: Thu Apr 16, 2009 9:27 pm
by intellivision
Thanks! Brilliant idea... now to put it in the forum suited to .htaccess questions...

See where I'm going with this?

:wink:

Re: Anti-hotlinking .htaccess code not working

Posted: Thu Apr 16, 2009 9:31 pm
by Benjamin
Yes I do, and if I was a moderator I would move this thread.

viewforum.php?f=14

Re: Anti-hotlinking .htaccess code not working

Posted: Thu Apr 16, 2009 9:42 pm
by intellivision
Well darn it, neither of us are moderators now are we. So we're back to where we were before you piped up, except we've both wasted a few minutes of our lives on nothing.

Re: Anti-hotlinking .htaccess code not working

Posted: Sat Apr 18, 2009 10:39 pm
by John Cartwright
Erm.. Moved. :)

Re: Anti-hotlinking .htaccess code not working

Posted: Sun Apr 19, 2009 2:42 am
by josh
When I hit your URL I get a 500 error:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Anything being logged?