2
It just stops people browsing your directory tree...
The JS is slightly more elegant, as it reirects you, instead of just presenting a blank page.
Someone should actually spend 5 minutes and cook up a sort of 404 like page that uses the site template, and gives people some links...