Dynadot โ€” .com Transfer

Help restricting access on server

Spacemail by SpaceshipSpacemail by Spaceship
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
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back