John Hoffmann's Weblog

All | AI | Comedy | Cool Threads | General | Java | Open Source | Robotics | Solaris 10 | Wiki
« Sortable Interface... | Main | Waiting for the... »

20040723 Friday July 23, 2004

Referrer Spam Roller does provide a Spam filtering function, however it has no global file and is therefore uniquely maintained by every blogger.

Login, then click on "Website" tab then, "Settings". Put words in the field titled:
"Ignore referering URLs that contain any of these (comma separated) words:"

You can use this to block both Spam and internal sun domains from appearing in your public referrer list.

Alternatively you can remove referrers from your public site totally by removing the following code from your theme: Login, then click on "website" tab then, "Pages". Click "Edit" button next to the page named "Weblog". Then remove the lines that look similar to this (each theme is a little different):

 <div class="menubox"><h2 class="box">referers</h2>
   #showReferers(20 25)
 </div>

The nice thing about Roller is that you can still see all your referrers when you are logged in by clicking on "Weblog" tab, then "Referrers". This way you can still analyze what Google queries and bloggers are leading people to your content. (2004-07-23 11:56:56.0) Permalink Comments [16]

Comments:

Just copied mail.jar and activation.jar to tomcat's common/lib from the webapps/roller/WEB-INF/lib directory and restarted Roller. Now, let's see if I get email notifying me of thsi comment getting posted.

Posted by hoffie on July 26, 2004 at 02:37 PM PDT #

Testing again - whilst tailing the logs:

Posted by hoffie on July 26, 2004 at 03:26 PM PDT #

OK getting closer, now when I test, the added jars produce an error message:
ERROR 2004-07-26 15:26:09,199 | CommentFormAction:update | NamingException: Name mail is not bound in this Context
So I have added these necessary config params to tomcat/conf/server.xml:
<Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>mailhost</value>
</parameter>
</ResourceParams>
</pre>

                

Posted by hoffie on July 26, 2004 at 04:26 PM PDT #

OK, last error was:
        class javax.mail.SendFailedException: 554 <john.hoffmann_sun.com>: Relay access denied

Worked with the admin and got the blog hosts added to allowed lists.

Posted by hoffie on July 26, 2004 at 04:37 PM PDT #

Doh, same error now, adding /etc/hosts mailhost line to the chrooted copy of etc/hosts !

Posted by hoffie on July 26, 2004 at 04:49 PM PDT #

User has reported that a n email occured last night, so testing again now to see if it is finally enabled.

Posted by hoffie on July 27, 2004 at 08:17 AM PDT #

will this trigger email?

Posted by Anonymous on July 27, 2004 at 08:36 AM PDT #

will it send email as long as someone provides any email address?

Posted by hoffie on July 27, 2004 at 08:53 AM PDT #

will it send email if I just give a name?

Posted by hoffie on July 27, 2004 at 08:54 AM PDT #

Testing anonymous posts.

Posted by Anonymous on July 28, 2004 at 09:51 AM PDT #

testing again - code indicates that it should work with anonymous comments:
String from = (StringUtils.isEmpty(cd.getEmail())) 
? "email@notspecified.com" : cd.getEmail();

Posted by Anonymous on July 28, 2004 at 09:55 AM PDT #

See?

Posted by Alan Burlison (via bsc_comment) on September 17, 2004 at 04:48 PM PDT #

OK, great, but it has stopped everyone but you for the last week, so I'm quite convinced the rest of the bsc community is happy with the trade-off.

Posted by john hoffmann on September 17, 2004 at 08:32 PM PDT #

They are only happy because a) they *think* it does what it says on the tin and b) the blogspammers have left us alone for the last week. As soon as they realise that a) is false and b) is no longer true then they'll *not* be happy. Apart from which, it makes us look like we don't know what we are doing.

Posted by Alan Burlison on September 19, 2004 at 05:01 PM PDT #

I told you so...

Posted by Alan Burlison on September 20, 2004 at 12:07 PM PDT #

Better, but still not immune I'm afraid.

Posted by Alan Burlison on September 22, 2004 at 03:45 AM PDT #

Post a Comment:

Comments are closed for this entry.