freebsd‎ > ‎

httpd.conf

SetEnvIfNoCase User-Agent ^Wget Wget
SetEnvIfNoCase User-Agent ^Lynx Lynx
SetEnvIf User-Agent "^(Mozilla|Opera)" Browser
Order deny,allow
Deny from all
Allow from env=Browser
Allow from env=Lynx
Deny from env=Wget


*Note:* If you use redirection at blocking the rules do not work for programs rocking, while in the browser it works?!

   * http://www.likhachev.net/mod_setenvif/
   * http://www.oglib.ru/apman/mod/mod_setenvif.html
   * http://hosting.agava.ru/faq/tech/docs/apache.shtml
   * http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html
   * http://www.htaccesselite.com/elite-setenvif-setenvifnocase-examples-vt356.html