How to hide directory listing in .htaccess?

Apache: How to hide directory listing in .htaccess?

  1. Options -Indexes

webdevetc profile pic

I am a 29 year old backend web developer from London, mostly focusing on PHP and Laravel lately. This ( is my blog where I write about some web development topics (PHP, Laravel, Javascript, and some server stuff). contact me here.


Comments and discussion about How to hide directory listing in .htaccess?

Found this interesting? Maybe you want to read some more in this series?

Or see other topics in the Apache language

Or see other languages/frameworks:
PHP Laravel Composer Apache CentOS and Linux Stuff WordPress General Webdev and Programming Stuff JavaScript
Or see random questions

How to set up custom error pages in .htaccess for your Apache server (ErrorDocument)

Point all requests to one PHP file

What are PHP's PSRs?

How to pick what array_intersect function to use in PHP?

How to set infinite execution time in a PHP script

What is Bubble sort, and how to write an implementation of it in PHP

How to check if a user is logged in, inside a blade file?

How to review blog posts (written by other users) before they get published on your WordPress blog?

How to check if a string contains a certain substring?

How to install jpegtran for Linux CentOS