Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:34 PM.


Advertisement
Log in to turn off these ads.