.ENV file is visible

前端 未结 4 1393
再見小時候
再見小時候 2021-02-19 03:45

I am using Laravel 5.1

I recently uploaded my project in shared hosting. but when i browse http://siteAddress.com/local/.env my .env file is visible.

<
4条回答
  •  情歌与酒
    2021-02-19 04:14

    Finally I hide .env and disable index view of the folder named local. I create a .htaccess in folder local.

    And here is the code of .htaccess

    # Disable index view
    Options -Indexes
    
    # Hide a specific file
    
        Order allow,deny
        Deny from all
    
    

提交回复
热议问题