title: Stopping direct file access using URL
body: <p>I am using laravel,
  In browser If I directly give the URL as below : </p>
  
  <pre><code>http://....../resources/views/users/index.blade.php
  </code></pre>
  
  <p>It will show the page as below :</p>
  
  <p><a href="https://i.stack.imgur.com/sYOPF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sYOPF.png" alt="enter image description here"></a>
  .</p>
  
  <p>I can't show page to public as above image.</p>
  
  <p>How can I block access to particular folder or files ?</p>