Contact

admin

About Me · Send mail to the author(s) E-mail · Twitter

At GROSSWEBER we practice what we preach. We offer trainings for modern software technologies like Behavior Driven Development, Clean Code and Git. Our staff is fluent in a variety of languages, including English.

Feed Icon

Tags

Open Source Projects

Archives

Blogs of friends

Now playing [?]

Error retrieving information from external service.
Audioscrobbler/Last.fm

ClustrMap

ItemReferralBlocked events, MovableType blacklist moved

Posted in dasBlog at Tuesday, October 04, 2005 12:21 AM W. Europe Daylight Time

Today I noticed a lot of ItemReferralBlocked events in the activity log of my dasBlog instance. Strangely enough, these blocked referrals were from common sites like Google and other search engines:

Info ItemReferralBlocked:
Item Referral blocked for Installing Windows on a HP Pavilion ze4500 Notebook
from http://www.google.com/search?hl=en&lr=&q=pavilion+ze4500+mod...
originating at IP Address 84.59.249.xxx
because of ""

Note the reason: It just states "".

I digged into the source code of the referral blacklist implementation and found that the MovableType blacklist has moved. Nevertheless, dasBlog's core engine will retrieve the blacklist from the original hard-coded URL and create a bogus internal representation based on the informal message behind the old URL. Of course, this message has nothing in common with the current MoveableType blacklist, so the comparison results of the referral against the blacklist are junk, i.e. the source of my blocked item referrals.

You'll have to change line 21 of newtelligence.DasBlog.Web.Core\MovableTypeBlacklist.cs from

private static Uri internetAddress = new Uri("http://www.jayallen.org/comment_spam/blacklist.txt");

to

private static Uri internetAddress = new Uri("http://www.jayallen.org/comment_spam/blacklist_initial.txt");

and recompile dasBlog.

You'll also have to delete the file blacklist.txt inside dasBlog\SiteConfig as it contains a copy of the blacklist that is updated once a day. A simple iisreset or copying the newly compiled assemblies into dasBlog\bin won't help since the aforementioned file isn't likely to be updated immediately from the new URL.

Update: The blacklist is gone.

DownloadThe patch for the file: MovableType Blacklist Patch.zip

Now playing: Cypress Hill - Black Sunday - What go around come around, kid

All comments require the approval of the site owner before being displayed.
(will show your gravatar icon)
 
[Captcha]Enter the code shown (prevents robots):

Live Comment Preview