blacklist-user-agents.conf 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # EDIT THIS FILE AS YOU LIKE TO OVER-RIDE, BLACKLIST OR WHITELIST
  2. # ANY BAD USER-AGENT STRINGS YOU WANT TO SCAN FOR
  3. # ****************************************************************************
  4. ##############################################################################
  5. # ___ __ #
  6. # / _ | ___ ___ _____/ / ___ #
  7. # / __ |/ _ \/ _ `/ __/ _ \/ -_) #
  8. # /_/ |_/ .__/\_,_/\__/_//_/\__/ #
  9. # __/_/ __ ___ __ ___ __ __ #
  10. # / _ )___ ____/ / / _ )___ / /_ / _ )/ /__ ____/ /_____ ____ #
  11. # / _ / _ `/ _ / / _ / _ \/ __/ / _ / / _ \/ __/ '_/ -_) __/ #
  12. # /____/\_,_/\_,_/ /____/\___/\__/ /____/_/\___/\__/_/\_\\__/_/ #
  13. # #
  14. ##############################################################################
  15. # Add One Entry Per Line - List all the extra bad User-Agents you want to permanently block or whitelist.
  16. # You can also use this include file to over-ride user-agents like wget or curl which are previously
  17. # white-listed in the main list. This gives you full control over what you want to allow access.
  18. # This is for additional User-Agents that are not included in the main list of the bot blocker
  19. # This is also used to over-ride User-Agents in the main list
  20. # This file must exist on your system or Apache will fail a reload due to a missing file
  21. # This allows you finer control of keeping certain bots blocked and automatic updates will
  22. # Never be able to remove this custom list of yours
  23. # Please note this include file loads first before any of the already whitelisted User-Agents
  24. # in the bad bot blocker. By loading first in line it over-rides anything below it so for instance
  25. # if you want to block Baidu, Google or Bing for any reason you add them to this file which loads
  26. # first and takes precedence over anything below it. This now allows even finer control over the
  27. # bad bot blocker. Enjoy !!!
  28. # Even though this file is called blacklist-user-agents, as mentioned it can also be used to whitelist user agents
  29. # By adding them below and setting the word bad_bot to good_bot this will permanently whitelist the User-Agent.
  30. # Make sure any words that contain special characters are escaped and include word boundaries as per the Regex examples below.
  31. # EXAMPLE 1: the User-Agent name "someverybaduseragentname1" is entered as "\bsomeverybaduseragentname1\b"
  32. # EXAMPLE 2: the User-Agent name "some-very-bad-useragentname2" is entered as "\bsome\-very\-bad\-useragentname1\b"
  33. # EXAMPLE 3: if you want to block something like wget you would add the following "\bwget\b"
  34. # the "\b" are word boundaries which prevents partial matching and false positives.
  35. # Follow the regex formatting examples below.
  36. # *************************
  37. # BLACKLIST ADDITIONAL BOTS
  38. # *************************
  39. BrowserMatchNoCase "^(.*?)(\bMyVeryBadUserAgentName\b)(.*)$" bad_bot
  40. BrowserMatchNoCase "^(.*?)(\bMy\ Bad\ User\ Agent\b)(.*)$" bad_bot
  41. # *************************
  42. # WHITELIST ADDITIONAL BOTS
  43. # *************************
  44. BrowserMatchNoCase "^(.*?)(\bMyVeryGoodUserAgentName\b)(.*)$" good_bot
  45. BrowserMatchNoCase "^(.*?)(\bMy\ Bad\ User\ Agent\b)(.*)$" good_bot