Jump to content

Hiding Directories in a Directory Listing


Recommended Posts

Hey guys,

Been trying to figure this out for a while.

Is there a way to hide certain directories in a directory listing in Apache if someone connects from a certain IP using a .htaccess file?

Basically, let's say my IP address is 1.1.1.1 (theoretically) and this IP is on the deny list in my .htaccess file, is there a way to hide one of the directories in the directory its accessing? Am I clear?

Thanks.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...