NameSilo

Help restricting access on server

NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
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.
AfternicAfternic
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
•••
Truehost — .com domains from $4.99, hosting includedTruehost — .com domains from $4.99, hosting included

We're social

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