blacklist-user-agents.conf 3.0 KB

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