using htaccess is as simple as adding a .htaccess file to the directory, but to each their own; you can always add it to the apache config, but keep in mind that it won't be added to your site backups if you're using an automated backup script (as server configurations are generally out of the scope).