eBusiness Portal : Spam Protector Package

Deployment Package Name:

com.boc.liferay.spam-protector-1.0.0.jar

Version No:

1.0.0

Release Date:

May 01, 2008

Default Portal Platform:

Liferay Portal, 4.3.*, 4.4.*

License Type:

Public

Approximate Cost :

free (SpamExchange is enabled for MyOffice24x7 members)

Annual Support Fee:

N/A

 

Dependency Package

Filename(s)

Vendor Name

Version No

N/A

N/A

N/A

N/A

Installation Instructions
Step 1. Download MyOffice24x7 Spam Protector Library by clicking here.
Step 2. Shutdown your web server.
Step 3. Copy MyOffice24x7 Spam Protector Library to class path. Liferay portal users may place it in 'ROOT.war/WEB-INF/lib/' directory.
Step 4. On local filesystem, create spam list file, eg. 'spamlist.txt'. For Liferay portal installation we recommend to create it in the repository directory '${resource.repositories.root}/spam/spam-list.txt'. See 'spam-list.txt' example.
Step 5. Create HTML page that will be displayed to those visitors that are marked as spammers. See our spam page. This page' URL will be used to configure 'spam-redirect-url' parameter in web.xml file. Note for Liferay portal installations that run multiple virtual hosts(instances) : you need to create a separate spammer page for every instance, that your portal is running!
Step 6. Modify web.xml file to include MyOffice24x7 spam filter as specified below.
 

<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>

  You may also download sample of configured Liferay web.xml file by clicking here.
Step 7. Start your web server.
Step 8. You can apply updates to your spamlist file at any time without restart. MyOffice24x7 members will be receiving updates automatically.