blacklist-user-agents.conf 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. # BY DEFAULT ALL THE EXAMPLES BELOW ARE COMMENTED OUT AND HENCE NOT ENABLED
  37. # *************************
  38. # BLACKLIST ADDITIONAL BOTS
  39. # *************************
  40. #BrowserMatchNoCase "^(.*?)(\bMyVeryBadUserAgentName\b)(.*)$" bad_bot
  41. #BrowserMatchNoCase "^(.*?)(\bMy\ Bad\ User\ Agent\b)(.*)$" bad_bot
  42. # *************************
  43. # WHITELIST ADDITIONAL BOTS
  44. # *************************
  45. #BrowserMatchNoCase "^(.*?)(\bMyVeryGoodUserAgentName\b)(.*)$" good_bot
  46. #BrowserMatchNoCase "^(.*?)(\bMy\ Bad\ User\ Agent\b)(.*)$" good_bot