Forum Moderators: phranque
mod_rewrite rewrites this url to a download script, which redirects the user to the actual file (after updating the download counter). this is so the user doesnt know where the file comes from (so they cant use my bandwidth without my knowing). but of course, its quite easy to find out.
so i've decided to try and use mod_rewrite to plug the hole.
RewriteCond %{HTTP_COOKIE} *user.*pass.* [NC] thanks in advance,
Will
However, are you sure that the cookies will always be sent in that order? If not, you need to cover both cases:
RewriteCond %{HTTP_COOKIE} (user.*pass¦pass.*user) [NC]
RewriteRule ^public_dld_URL$ /private_dld_URL [L]
RewriteRule ^test\.foo$ http://www.example.com/test.bar?cookie_test=%{HTTP_COOKIE} [R=301,L]
Replace all broken pipe "¦" characters above with solid pipes before use; Posting on this board modifies the pipe character.
Jim