Help with my .htaccess

Discussion in 'Programming' started by khan11, Dec 26, 2008.

  1. #1
    Hello,

    I want to disallow all users to download files from one of my folders in site.

    I used .htaccess, but it then disallows my own site as well to read or use those files from that folder, hope u understand.

    here is code:
    AuthUserFile /dev/null
    AuthGroupFile /dev/null
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !>http://www.site.com/files[NC]
    RewriteCond %{HTTP_REFERER} !>http://site.com/files[NC]
    RewriteRule /* http://www.site.com/ [R,L]
    Code (markup):
    There are music files in FILES folder, what i want is to read those files on my site using wmplayer code and disallow other users to download those files from my site.

    Can you come up with correction or any coding stuff which can do this action?

    thanks
     
    khan11, Dec 26, 2008 IP