grav icon indicating copy to clipboard operation
grav copied to clipboard

Block direct access to git folder

Open moraryou opened this issue 11 years ago • 2 comments

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]

moraryou avatar Aug 30 '15 10:08 moraryou

Looks good to me, why don't you create a PR for this?

rhukster avatar Aug 30 '15 13:08 rhukster

Fixed by https://github.com/getgrav/grav/pull/294

flaviocopes avatar Aug 31 '15 07:08 flaviocopes