|
<filter>
<filter-name>Spam Filter</filter-name>
<filter-class>com.boc.liferay.portal.filter.SpamFilter</filter-class>
<init-param>
<!-- This is the URL which the spammer will be redirected to once detected -->
<param-name>spam-redirect-url</param-name>
<param-value>/web/guest/spam</param-value>
</init-param>
<init-param>
<!-- Once user is marked as a spammer, no more checks will be made until this time expires. Useful for testing purposes. -->
<param-name>repeat-user-session-spam-check-in-minutes</param-name>
<param-value>60</param-value>
</init-param>
<init-param>
<!-- Absolute path of a local spamlist file -->
<param-name>spamlist-filename</param-name>
<param-value>/home/liferay/repository/spam/spam-list.txt</param-value>
</init-param>
<init-param>
<!-- Local spam list file will be checked for updates periodically and reloaded if timestamp has changed -->
<param-name>reload-spamlist-file-in-minutes</param-name>
<param-value>10</param-value>
</init-param>
<init-param>
<!-- This is for MyOffice24x7 members only, to enable distributed exchange of spam information. Point to you certificate file. -->
<param-name>spamxchange-certificate</param-name>
<param-value></param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Spam Filter</filter-name>
<!-- Place path you would want to protect from spammers -->
<url-pattern>/web/guest/*</url-pattern>
</filter-mapping>
|