News for hackers. Stuff that matters.
Re:Please stop serving .git to the outside world by alcat on Monday June 10, 2013 @08:47AM (#5853947)
I make it a habit to put all my public files in directory such as www/, where as .git and other non public but site-related files/directories are contained above this.
Re:Please stop serving .git to the outside world by dan15 on Monday June 10, 2013 @09:20AM (#5854114)
IMO this is the correct approach - Exposing every single file in the repository (including files that don't need to be public) sounds terrible.
Re:Please stop serving .git to the outside world by drivebyacct2 on Monday June 10, 2013 @02:07PM (#5855966)
Yes. I mean, even 6 year old PHP articles get this right, don't serve files from the same place your executing code is running from.

public_html has specific connotations for a reason.