Jump to content
  • 0

How to make a sub-directory inaccessible?


Technoken

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Alright so I just did setup my FluxCP. And I tried to access it's sub-directory which I can BUT I couldn't read its contents.

Then I did add the patcher and forum folders inside the fluxcp ( FLUXCP/patcher and FLUXCP/forum )

Now how can I make it work like the other fluxcp sub-directories that couldn't be read OR make it totally inaccessible outside.

I tried to put .htaccess (Order deny,allow Deny from all) inside the patcher folder but thor patcher.exe doesn't work.

Anybody has an idea how to make it work? Thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3124
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

Inside your patch folder, have a .htaccess file that contains:

Options -Indexes

That will remove directory indexing so your patch files don't just appear as a list when your directory is visited... or simply put a blank index.htm file in there..

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Works like charm. Thank you so much @Akkarin

Link to comment
Share on other sites

×
×
  • Create New...