blacklist-user-agents.conf 2.1 KB

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