I need help with .htaccess

design

#1

I have a directory, “/protected/”, that I only wanted certain IPs to be able to view. The directory has three files in it:
.htaccess
index.html
file.rar

Here’s my .htaccess code:

order deny,allow
deny from all
allow from <IP 1>
allow from <IP 2>
allow from <IP 3>
allow from <IP 4>
allow from <IP 5>
allow from <IP 6>

Ok, so when I add the persons IP, they can view the Index.html. However, when they click the download link to the “file.rar”, they get the 404 FORBIDDEN error… Any help? Thanks much :slight_smile:


#2

Try reversing the deny,allow. Or Place deny from all at the bottom. It does make a difference, I recall having a similar issue back when I first created my black list.
Silk

My website


#3

That didn’t work =\


#4

Did you check the chmod properties for the rar file?
Silk

My website


#5

Now i think it’s the file… If i upload other zip or rar files, people can still download them. The CHMOD is set to 644. The file’s 2.3 GB… i’m guessing that has something to do with it?