CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   htaccess - bandwidth-protect thing (http://www.codingforums.com/showthread.php?t=4310)

lc_matrix 08-17-2002 11:19 PM

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


All times are GMT +1. The time now is 09:51 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.