10-27-2008, 06:48 PM
sishgupta Wrote:@Dual
Nice, thanks =)
Can you show me how to do it for more than one ip?
You just add more lines like:
SetEnvIfNoCase Referer hl2://00\.000\.00\.00 allow_download
SetEnvIfNoCase Referer hl2://10\.100\.00\.00 allow_download
SetEnvIfNoCase Referer hl2://20\.200\.30\.00 allow_download
This sets the "allow_download" environment variable IF the referer matches to the "hl2://....." string. Then the following lines reject the query unless the "allow_download" environment variable is set.
This is great tut. Masher's got nice solution, but this .htaccess method is much better.