You should block accessing your precious source code when you use Apache web server and manage your code based in Git - meaning Hacker can easily stole your precious information from your source code directly when you have .git on your repository directory. |
To avoid stealing your precious source, you should add below at .htaccess or /etc/httpd/conf.d/vhosts.conf or /etc/httpd/conf/httpd.conf
## block accessing at .git <Directorymatch "^/.*/\.git/"> Order 'deny,allow' Deny from all </Directorymatch> |