Protecting My Web Server

NakaNaka

Diamond Member
Aug 29, 2000
6,304
1
0
Ok. Inside my server w. some webhost, my folder, http://www.ffhockey.com/phil23/, you see how anyone can just look at all those files. I don't want that. I want people to able to access the individual files, but only if they have the exact file names. How can I block people from seeing these files? I have someone prying where I don't want them. P.S. - I have Cpanel.

 

amdskip

Lifer
Jan 6, 2001
22,530
13
81
I don't know how to do that but I would like to know how to do that to my website so I can see a directory of files.
 

Mucman

Diamond Member
Oct 10, 1999
7,246
1
0
put an .htaccess file in the directory... I can't recall what needs to be in it, but since I feel dumb for not knowing, I will google it for ya :)

hmm... I believe you want :

Options Includes FollowSymLinks

in your .htaccess file
 

NakaNaka

Diamond Member
Aug 29, 2000
6,304
1
0
SOrry .. exactly what am I doing? I see the file and I've opened up, but there doesn't seem to be much there. What specifically do I add and where.
 

Mucman

Diamond Member
Oct 10, 1999
7,246
1
0
So you have an .htaccess file? Then just put that line in there... I'll try it on my site to make sure I'm not telling you falsey while I am at it :)
 

NakaNaka

Diamond Member
Aug 29, 2000
6,304
1
0
good it works. I hope there is no way to get around that. I'm doing this because some person is stealing stuff from my private folders.
 

Mucman

Diamond Member
Oct 10, 1999
7,246
1
0
Yup... worked for me too... if you want to protect certain files from being hardlinked (ie someone types in the full URL straight to the file) you can password
protect them using .htaccess and .htpasswd files as well.