Apache Server configuration support - .htaccess

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2006 > .htaccess





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author .htaccess
EOZyo

2006-08-29, 1:50 am

Hi everybody

Sorry to bother you, but it has come to my attention something very
particular under one of my subdomains i have a .htaccess file that
blocks download enhancers by using the HTTP_USER_AGENT order, so far it
was working but now is not anymore.

I have not made any change to my httpd file and the .httaccess file
looks like:

#Options +FollowSymLinks
#RewriteEngine On
#RewriteBase /
#
#RewriteCond %{HTTP_USER_AGENT} ^Aculinx [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^Ants [NC,OR]
#RewriteCond %{HTTP_USER_AGENT} ^Anarchie [NC,OR]
# ... and so some other 170
#RewriteRule .\.([mM][pP][3])$ - [F]

As i understand this will not let any of those agents to download mp3
extensions, is that right?

So far my site offers downloads using a php script and the URL looks
like:

#http://sub.mydomain.com/subdir/index.php?dir=directory/ (for showing
directories)
#http://sub.mydomain.com/subdir/inde.../&file=file.mp3

If i change the RewriteRule to RewriteRule .\.([pP][hH][pP])$ - [F] i
get a Forbidden message (obviously since the rule establishes so) even
if i use firefox or internet explorer and not any of the
..htaccess-blocked agents.

Any recommendations?

Regards,
EOZyo

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com