I would like to set up a simple rule where access is allowed from a number of specific URLs These are to include subdomains and .com / .[url removed, login to view] extensions. All other referrers will be sent to a web page of our choice. I'd like this to apply to the whole directory, so that if people type the url for any page in the directory into the address bar, they are forwarded to the 'access denied' page.
In your proposal, please explain what technique you're going to use (.htaccess / on page code etc.) and why it is the best way to go. I need this turned around immediately.