title: Laravel 4: prevent access to any file or folder except public
body: <p>I'm working on small project, and will host it on normal Godaddy host plan, the problem is:  all file system will be accessible through internet.</p>
  
  <p>so, how can I prevent access to any folder or file except /public</p>
  
  <pre><code>CONTRIBUTING.md  
  app/     
  artisan  
  bootstrap/   
  composer.json    
  composer.lock    
  phpunit.xml  
  public/  
  server.php   
  vendor/
  </code></pre>
  
  <p>thanks,</p>