Secure downloads

I am trying to setup the download security with the mask URL like described on the help page, so far no luck. But, isn't there a way to secure the file using htaccess to prevent a user from navigating to the file?