Categories
How to allow access to only one user agent via .htacess?
It is necessary to allow access to the site to only one user agent, and to prohibit the rest.
Answer the question
In order to leave comments, you need to log in
SetEnvIfNoCase User-Agent .*google.* search_robot SetEnvIfNoCase User-Agent .*yahoo.* search_robot SetEnvIfNoCase User-Agent .*bot.* search_robot SetEnvIfNoCase User-Agent .*ask.* search_robot Order Deny,Allow Deny from All Allow from env=search_robot
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question