You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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 .git
<Directorymatch "^/.*/\.git/">
  Order 'deny,allow'
  Deny from all
</Directorymatch>





  • No labels