Longish list of allowed referrers

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-04-25T14:25:26Z Indexed on 2010/04/25 14:33 UTC
Read the original article Hit count: 226

I want to allow hotlinking only from a list of referrers (paying customers, probably a few hundred).

I am on Apache 1.3 and I do not have access to the configuration (only .htaccess).

What is the fastest way to implement this?

My thoughts so far:

  • PHP with database and readfile()

  • (SSI with) Perl and database

  • the list implemented as symlinks named after the allower referrer, then RewriteCond using HTTP_REFERER

  • everything in .htaccess, lots of RewriteCond's

  • everything in .htaccess, lots of SetEnvIf's

Any better (faster) ways to do this? Thanks!

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about hotlinking