.htaccess question

Status
Not open for further replies.

propctuner

Member
Prime Account
Messages
59
Reaction score
0
Points
6
I'm not having any luck with this but how do i block directories from being browsed but i don't want to block the directory from the actual content inside..

for example i want to block access of someone browsing my images directory but my header and website framework images are inside those always get blocked from showing on my website.

does this make any sense?

---------- Post added at 02:01 AM ---------- Previous post was at 01:57 AM ----------

i think i just read something that the only way to do this is by manually adding each and every individual file?

theres not a way where i can specify just file extension?
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Options -Indexes

Try that; you'll not be able to get the Index Of / on the directory (if memory serves it'll kick a 403 forbidden).
 

propctuner

Member
Prime Account
Messages
59
Reaction score
0
Points
6
you rock dude! it goes to a 403 forbidden exactly as you said and didn't block any content!

thanks a million!
 

Livewire

Abuse Compliance Officer
Staff member
Messages
18,169
Reaction score
216
Points
63
Was a random guess actually :)

Edit: Oh, forgot to mention, hotlinking is still possible, but you have to know the filename :)
 
Last edited:
Status
Not open for further replies.
Top