title: Is there a way to hide the file listing index page of a MinIO bucket?
body: <p>I have set a MinIO bucket's access permission to &quot;download&quot; so that files can be read (but not written) by anyone, but this has enabled an &quot;index page&quot; that shows the contents of the entire bucket.
  For example, consider the bucket <code>store/test</code> that contains the file <code>example.png</code>. I would like <code>example.png</code> to be readable by the world wide web, so I set the access permission for <code>store/test</code> to &quot;download&quot;, which means that <a href="https://store.example.com/test/example.png" rel="nofollow noreferrer">https://store.example.com/test/example.png</a> is now readable by anyone, but it also means that <a href="https://store.example.com/test" rel="nofollow noreferrer">https://store.example.com/test</a> now shows a listing of all files in the bucket:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;!-- Pretty printed result of $ curl https://store.example.com/test --&gt;
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;ListBucketResult xmlns=&quot;http://s3.amazonaws.com/doc/2006-03-01/&quot;&gt;
    &lt;Name&gt;test&lt;/Name&gt;
    &lt;Prefix/&gt;
    &lt;Marker/&gt;
    &lt;MaxKeys&gt;4500&lt;/MaxKeys&gt;
    &lt;Delimiter/&gt;
    &lt;IsTruncated&gt;false&lt;/IsTruncated&gt;
    &lt;Contents&gt;
      &lt;Key&gt;example.png&lt;/Key&gt;
      &lt;LastModified&gt;2021-02-05T08:13:06.683Z&lt;/LastModified&gt;
      &lt;ETag&gt;&quot;7c8b827ef97e929258e9728cb96059cf-33&quot;&lt;/ETag&gt;
      &lt;Size&gt;4295413012&lt;/Size&gt;
      &lt;Owner&gt;
        &lt;ID&gt;02d6176db174dc93cb1b899f7c6078f08654445fe8cf1b6ce98d8855f66bdbf4&lt;/ID&gt;
        &lt;DisplayName/&gt;
      &lt;/Owner&gt;
      &lt;StorageClass&gt;STANDARD&lt;/StorageClass&gt;
    &lt;/Contents&gt;
  &lt;/ListBucketResult&gt;
  </code></pre>
  <p>I don't want to show this listing page, but I do want all files in the bucket to be world-readable, including files that are added to the bucket later. How can this be achieved?</p>