Mercurial > prosody-wiki
comparison mod_host_guard.wiki @ 281:a0d014edd8df
Refined.
author | maranda3985@gmail.com |
---|---|
date | Sat, 26 May 2012 21:06:41 +0000 |
parents | 22f6a2a998cf |
children | caffa894b070 |
comparison
equal
deleted
inserted
replaced
280:22f6a2a998cf | 281:a0d014edd8df |
---|---|
16 * Or by selectively blocking certain remote hosts through blacklisting (by using host_guard_selective and host_guard_blacklisting) | 16 * Or by selectively blocking certain remote hosts through blacklisting (by using host_guard_selective and host_guard_blacklisting) |
17 | 17 |
18 Module configuration syntax: | 18 Module configuration syntax: |
19 <code language="lua"> | 19 <code language="lua"> |
20 host_guard_blockall = { "no_access.yourhost.com", "no_access2.yourhost.com" } -- insert here the local hosts where you want to forbid all remote traffic to. | 20 host_guard_blockall = { "no_access.yourhost.com", "no_access2.yourhost.com" } -- insert here the local hosts where you want to forbid all remote traffic to. |
21 host_guard_blockall_exceptions = { "i_can_access.no_access.yourhost.com" } -- exceptions for the above. | 21 host_guard_blockall_exceptions = { "i_can_access.no_access.yourhost.com" } -- optional exceptions for the above. |
22 host_guard_selective = { "no_access_from_blsted.myhost.com", "no_access_from_blsted.mycomponent.com" } -- insert here the local hosts where you want to employ blacklisting. | 22 host_guard_selective = { "no_access_from_blsted.myhost.com", "no_access_from_blsted.mycomponent.com" } -- insert here the local hosts where you want to employ blacklisting. |
23 host_guard_blacklist = { "remoterogueserver.com", "remoterogueserver2.com" } -- blacklisted remote hosts. | 23 host_guard_blacklist = { "remoterogueserver.com", "remoterogueserver2.com" } -- above option/mode mandates the use of a blacklist, you may blacklist remote servers here. |
24 </code> | 24 </code> |
25 | 25 |
26 The above is updated when the server configuration is reloaded so that you don't need to restart the server. | 26 The above is updated when the server configuration is reloaded so that you don't need to restart the server. |
27 | 27 |
28 = Compatibility = | 28 = Compatibility = |