Sometimes I write things

RSS

Protect Your .git Directory

Posted on:

It seems a lot of people are using Git to get their website’s into version control. That is a good thing. The truth is, however, a lot of designers don’t have too much experience with the nuances of having our code in a repository, and so we don’t always know about little security tips and tricks the pros use.

Well, here’s an important little trick I picked up from Matt Masuga’s presentation at EECI2010. If your deployed site is a working copy of your master repository, adding this simple rule to your .htaccess file will hide your .git directory from public viewing, adding a bit of extra security. This tip will actually work for any site that’s deployed on Git.

The rule is : RedirectMatch 403 /.git.*$

This is a pretty important rule to have because it protects you from people seeing the inner workings of your server. Hope this helps someone!

Take a look at the new digs…

Posted on:

It’s been a long time coming, but I’m proud to announce my new site. It’s not perfect by any means, but I’m really happy with the way it’s turning out.

A Fresh Start

I started fresh this time around, rather than using what I had already built as a starting point. I wanted this design to have more “legs” and last a bit longer than previous iterations, and I think I’m on the right track with this direction.

Another Blog?

Some of you may notice that I now have two blogs going. I’ve decided that I’m going to make my Tumblr blog a bit more personal and the blog on this site more professional/web related. So if you’d like know more about my personality, head over to http://blog.davidhemphill.com, but if not, that’s fine with me too.

Other

I haven’t even given this site a check in Internet Explorer (or any non-Webkit browser really) to see how it renders, but I’m going to make every attempt to make it look great there too. Don’t hold your breath though.

Back to the top