Help restricting access on server

Namecheap AuctionsNamecheap Auctions
NamecheapNamecheap
SpaceshipSpaceship
Watch

bdd

Established Member
Impact
1
hey i am doing a site for someone and on there server when you go to a folder with a url in your browser, it shows up the files in that folder in a list.... how do i stop it from doing that? also how do i prevent access to a specific file?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
If server runs with CPanel or other, you can do it with that, look for a tool like Index Manager.

Else you can do it yourself. Create a file called .htaccess with the following line :

PHP:
Options All -Indexes
And place this file in the directory you want no listing. It will deny listing for subdirectory too.
 
0
•••
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
URLs.com
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back