.htaccess tutorial

htaccess Elite


How can I block User-Agents that use a particular language?

Security in htaccess: htpasswd, 401 Authentication

How can I block User-Agents that use a particular language?

New postby manny » 10 Sep 2008 22:45

Hello,

Thank you in advance for your help.

I have a very serious problem that calls for me to block all user agents that use a specific language. In the following example from my logs, the "en-US" stands for "English."

--------------
Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
--------------

Now, let's say I want to block Chinese ("CH"). How can I do that in htaccess?
manny
 
Posts: 1
Joined: 10 Sep 2008 22:28

Return to Security and Authentication