How to block access to certain directories?

Post Reply
User avatar
kraze
Staff
Staff
Posts: 4356
Joined: Fri Sep 17, 2010 9:06 am
Location: California

How to block access to certain directories?

Post by kraze » Sun Dec 18, 2011 9:04 pm

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: 11994
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: How to block access to certain directories?

Post by Edge100x » Mon Dec 19, 2011 12:20 am

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

Post Reply