View Single Post
Old 08-17-2002, 11:19 PM   PM User | #1
lc_matrix
New to the CF scene

 
Join Date: Aug 2002
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
lc_matrix is an unknown quantity at this point
htaccess - bandwidth-protect thing

Hi,

i am using a code like this: (i changed my url to mydomain.de - doesn't matter in this case)

Code:
AuthUserFile /dev/null
AuthGroupFile /dev/null

RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://mydomain.de/ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mydomain.de/ [NC]
RewriteCond %{HTTP_REFERER} !^http://redesign.mydomain.de/ [NC]
RewriteRule /* http://www.mydomain.de/download.php?get=xxxx [R,L]
It perfectly redirects all requests not coming from mydomain.de, www.mydomain.de and redesign.mydomain.de to the download.php file. unfortunatelly i cannot get the file, which was actually requested. I tried to pass the parameter get to my script but i don't know how to send the requestet url with it. could someone please give me a corrected code where RewriteRule will add some variables like request_uri or http_referer to the download.php script ?

thanks in advance,
MfG,
Matrix
lc_matrix is offline   Reply With Quote