monkey.deny 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Monkey HTTP Daemon - Deny
  2. # =========================
  3. # In this file you can establish the restrictions you want to put. Upon
  4. # breaking a restrictions, monkey sens the error 403 (forbidden) to the
  5. # client.
  6. #
  7. # Mode of use:
  8. # ------------
  9. # a) Restriction through URL:
  10. #
  11. # To defined chains that you want to register corresponding to parts
  12. # of URL like for example the typical "../../" we, could block
  13. # whatever connection if in any part of the text it's URL contains
  14. # "..", this we sould do in the following form:
  15. #
  16. # URL ..
  17. #
  18. URL ../etc/
  19. URL ..
  20. URL *
  21. URL //
  22. URL passwd
  23. # b) Restriction for IP:
  24. #
  25. # If you whish to deny access to an entering connection, it's ip
  26. # would be the same as 207.46.197.102 (IP that corresponds to one of
  27. # the principal servers of microsoft.com), we would do it
  28. # in the following way:
  29. #
  30. # IP 207.46.197.102
  31. #
  32. # It's also possible to block through ranges of IP
  33. #
  34. # Ex:
  35. #
  36. # If we wanted to block the range 207.46.197.0 a 207.46.197.255,
  37. # we would establish a rule like:
  38. #
  39. # IP 207.46.197.*
  40. #
  41. # Another form to block is by digit:
  42. #
  43. # Ex:
  44. #
  45. # IP 123.65.98.1? (denies access to IP's in the range
  46. # 123.65.98.10-19, but doesn't block access to
  47. # 123.65.98.1, 123.65.98.100, 123.65.98.124,etc)
  48. #
  49. # IP 41.10.12?.??? (denies access to IP's in the range 41.10.120.xxx
  50. # to 41.10.129.xxx but don't block access to
  51. # 41.10.12.xxx)
  52. #
  53. # IP 52.74.1?1.81 (denies access to IP's in the range 52.74.101.81
  54. # to 52.74.191.81)
  55. #
  56. # IP 77.96.8? (Doesn't block address, because it's missing the
  57. # last octet)
  58. #
  59. # At least it's possible to get some combinations of IP's to block,
  60. # for example:
  61. #
  62. # IP 169.12?.1* (Block access to IPs 169.123.1.41,
  63. # 169.127.15.1, 169.120.198.125, etc)
  64. #
  65. # A little complicated, but interesintg :)
  66. #
  67. IP 207.46.197.102