Forum Moderators: phranque
thanks for providing this helpful infrastructure!
my question:
i want to protect a directory via .htaccess to allow only one specified user-agent.
all others should be denied.
could somebody please spend a little time helping me in this issue?
big thanks in advance.
Welcome to WebmasterWorld!
You can easily use either mod_access [httpd.apache.org] and mod_setenvif [httpd.apache.org], or mod_rewrite [httpd.apache.org] to accomplish this.
A couple of points to remember are that User-agents can easily be spoofed (or suppressed by firewalls and/or caching proxies), and that you may be blocking search engines from your site.
Jim