Stopping directory Listing in the server

How to stop directory listing via domain ?
Like if someone visits my domain
He/She will be able to view the full directory. How do i stop it ?
I want an error 403 to be shown.

When I tried to access the url I got an 403 error!


Yaah i just tried a way i googled by adding a line to the htaccess file.
Thanks for the help. <3

Glad you got it solved!

I like the 403 page by the way!

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.