How to block access to certain directories?

Post Reply
User avatar
kraze
Former staff
Former staff
Posts: 4362
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Sep 17, 2010 9:06 am
Location: California

How to block access to certain directories?

Post by kraze »

If you have a website with NFO you most likely have some directories where you store your files, whether that be some custom maps or a mod that you do not want people getting there hands on. There is an easy way to block people from getting access to those directories..

1. Create a blank index.html file in your favorite editor(Or design one)
2. Upload it to the specific directory you want to block
3. Attempt to navigate to that directory

If you did everything correct the user should be presented with a completely blank page.


Please keep in mind, if people know the exact name of the file they will still have access to it.

XXX.site.nfoservers.com/custom = Blocked
XXX.site.nfoservers.com/custom/NFO-christmasparty.jpg = Not Blocked
User avatar
Edge100x
Founder
Founder
Posts: 13009
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to block access to certain directories?

Post by Edge100x »

Alternately, if you wish to password-protect a directory: http://www.nfoservers.com/forums/viewto ... =19&t=3736
Post Reply