Mercurial > prosody-wiki
diff mod_host_guard.wiki @ 281:a0d014edd8df
Refined.
author | maranda3985@gmail.com |
---|---|
date | Sat, 26 May 2012 21:06:41 +0000 |
parents | 22f6a2a998cf |
children | caffa894b070 |
line wrap: on
line diff
--- a/mod_host_guard.wiki Sat May 26 20:52:16 2012 +0000 +++ b/mod_host_guard.wiki Sat May 26 21:06:41 2012 +0000 @@ -18,9 +18,9 @@ Module configuration syntax: <code language="lua"> 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. -host_guard_blockall_exceptions = { "i_can_access.no_access.yourhost.com" } -- exceptions for the above. +host_guard_blockall_exceptions = { "i_can_access.no_access.yourhost.com" } -- optional exceptions for the above. 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. -host_guard_blacklist = { "remoterogueserver.com", "remoterogueserver2.com" } -- blacklisted remote hosts. +host_guard_blacklist = { "remoterogueserver.com", "remoterogueserver2.com" } -- above option/mode mandates the use of a blacklist, you may blacklist remote servers here. </code> The above is updated when the server configuration is reloaded so that you don't need to restart the server.