grav
grav copied to clipboard
Block direct access to git folder
I have just installed GRAV CMS for the first time.
If installation was done via git clone https://github.com/getgrav/grav.git the .git folder(direct file access) created in the root folder is accessible for public. Maybe a temporary solution to fix it:
# Block all direct access for these folders
RewriteRule ^(.git|cache|bin|logs|backup)/(.*) error [L]
Looks good to me, why don't you create a PR for this?
Fixed by https://github.com/getgrav/grav/pull/294