How to hide directory listing in .htaccess?

Apache: How to hide directory listing in .htaccess?

  1. Options -Indexes

webdevetc profile pic
webdevetc

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



More...


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 prevent Eloquent from adding created_at or updated_at timestamps?

How to check if an object or variable is an array, in JS?

Force trailing slash (redirect if no trailing slash exists) in .htaccess

How to view all installed PHP modules?

How to set the Expires header in .htaccess

How to have a whitelist of IP addresses that can access files in .htaccess

How to manually write your own pagination in PHP

How to namespace a Laravel route group?

How to hide directory listing in .htaccess?

How can you check if a variable is alphanum (alphanumeric, letters and numbers only) in PHP?