# Wiki Spam Report

**URL:** <https://rubytalk.org/t/wiki-spam-report/15279>\
**Category:** ruby-talk\
**Created:** [13 December 2004 18:21 UTC](https://rubytalk.org/t/wiki-spam-report/15279 "2004-12-13T18:21:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [13 December 2004 18:21 UTC](https://rubytalk.org/t/wiki-spam-report/15279/1 "2004-12-13T18:21:02Z")

</div>

Wiki Spam Report

> **···**
>
> ----------------
> 
> I thought I would take some time and report on the wiki spam situation  
> on RubyGarden. As I hope you have noticed, the wiki has been  
> remarkably spam free. This email will tell you what measures we have  
> taken to get to this point.
> 
> But first ...
> 
> Some Numbers  
> ------------
> 
> Over the past 10 days, we have had:
> 
> &nbsp;&nbsp;93 updates to the wiki page, all (AFAICT) spam free.  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(although I might have missed spotting some).
> 
> &nbsp;&nbsp;46 updates to the wiki tarpit. Of those, we had ...  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3 innocent updates  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2 questionable updates  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 update by me  
> &nbsp;&nbsp;&nbsp;&nbsp;40 spams
> 
> The Mechanism  
> -------------
> 
> Spammers are automatically routed to a wiki tarpit. The tarpit is an  
> (almost) exact copy of the real RubyGarden wiki. Making changes to  
> the tarpit looks as if you are making changes to the real wiki. And  
> since spammers get their pages from the wiki, it looks like (to them)  
> that they have successfully spammed our site.
> 
> However, everyone else never gets to see the spam.
> 
> By tricking the spammers into thinking they are successful, they don't  
> put any additional effort into bypassing our spam detection criteria.  
> This is important! When we explicitly denied them access to the wiki,  
> then went to great lengths to figure out how to get around the  
> restrictions. I haven't seen any of that kind of probing with the  
> tarpit.
> 
> Detecting Spammers  
> ------------------
> 
> The current spammer detection logic is based on two observations:
> 
> (1) Spammers almost never use an IP address that has reverse lookup  
> enabled. This effectively means that it appears (to the wiki  
> software) that your host name looks like a numeric IP address.
> 
> (2) Spammers almost never set user preferences on the wiki.
> 
> So if both of these conditions are true, we treat the access as a spammer  
> and send it to the tarpit.
> 
> Now this isn't perfect, but that's OK. We also have a explicit ban  
> list for spammers who pass one of (1) or (2) above. And we have an  
> explicit allow list that overrides the automatic spammer detection.
> 
> Innocent Users  
> --------------
> 
> Can innocent users get trapped by the Tapit? The short answer is yes.  
> However, we are monitoring the tarpit and will attempt to rescue such  
> users.
> 
> In the past 10 days, there were at least 3 page updates that were from  
> innocent users. One guy (bless his heart) even removed some spam from  
> the tarpit for us.
> 
> When I see innocents trapped in the tarpit, I add their IP address to  
> the allow list and manually update the wiki with their changes (if  
> they are significant).
> 
> Detecting the Tarpit?  
> ---------------------
> 
> The tarpit is deliberately designed to look like the original wiki, so  
> it is sometimes difficult to tell when you are trapped. Here's some  
> suggestions.
> 
> You are probably in the Tarpit when:
> 
> \* there are a lot of recent updates made with numeric IP addresses  
> &nbsp;&nbsp;rather than host names.
> 
> \* a lot of the pages have spam.
> 
> Although neither of these suggestions are foolproof. I refresh the tarpit  
> from the real wiki occasionally (to keep it looking realistic).  
> Immediately after a refresh it is /very/ difficult to tell the difference.
> 
> If you think you are trapped by the tarpit, send me  
> ([jim@weirichhouse.org](mailto:jim@weirichhouse.org)) an email with your IP address and I will check  
> the logs. If you are trapped, we can add your IP address to the allow  
> list.
> 
> If you are worried about getting caught in the tarpit, just make sure you  
> have your user preferences set when accessing the tarpit (click on the  
> preferences link from any wiki page).
> 
> Summary  
> -------
> 
> I am pretty happy with the current wiki situation. In fact, the  
> tarpit has been so successful, that I am considering lifting the ban  
> on lower case http. The ban currently isn't buying us any benefits  
> and is rather annoying (I'll make it so both upper and lower case  
> work).
> 
> Thanks for your time.
> 
> --  
> -- Jim Weirich [jim@weirichhouse.org](mailto:jim@weirichhouse.org)[http://onestepback.org](http://onestepback.org)  
> -----------------------------------------------------------------  
> "Beware of bugs in the above code; I have only proved it correct,  
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

---

<div class="post-metadata">

**Author:** ![Martin\_Ankerl](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Martin\_Ankerl](https://rubytalk.org/u/Martin_Ankerl)\
**Post date:** [13 December 2004 21:27 UTC](https://rubytalk.org/t/wiki-spam-report/15279/2 "2004-12-13T21:27:18Z")

</div>

That is a very cool idea! But I am afraid this posting is the reason  
why [http://www.rubygarden.org/ruby](http://www.rubygarden.org/ruby) currently is under attack from a lot  
of spammers.

martinus

---

<div class="post-metadata">

**Author:** ![Ed\_Hames](https://avatars.discourse-cdn.com/v4/letter/e/ecb155/32.png) [@Ed\_Hames](https://rubytalk.org/u/Ed_Hames)\
**Post date:** [14 December 2004 03:30 UTC](https://rubytalk.org/t/wiki-spam-report/15279/3 "2004-12-14T03:30:09Z")

</div>

What does spam look like on a wiki site?

Thanks,  
Ed

> **···**
>
> On Tue, 14 Dec 2004 03:21:02 +0900, Jim Weirich \<jim@weirichhouse.org\> wrote:
> 
> > Wiki Spam Report  
> > ----------------
> > 
> > I thought I would take some time and report on the wiki spam situation  
> > on RubyGarden. As I hope you have noticed, the wiki has been  
> > remarkably spam free. This email will tell you what measures we have  
> > taken to get to this point.
> 
> --  
> Pretty women make us buy beer, ugly women make us drink beer

---

<div class="post-metadata">

**Author:** ![Curt\_Sampson](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@Curt\_Sampson](https://rubytalk.org/u/Curt_Sampson)\
**Post date:** [14 December 2004 04:46 UTC](https://rubytalk.org/t/wiki-spam-report/15279/4 "2004-12-14T04:46:27Z")

</div>

It looks like the sandbox is not working for 221.197.18.150. If you look  
at RecentChanges, he's changed a lot of pages to add what seems to be  
mostly Chinese links to chinese websites. I've set preferences, and I'm  
still seeing it.

cjs

> **···**
>
> On Tue, 14 Dec 2004, Jim Weirich wrote:
> 
> > ...
> 
> --  
> Curt Sampson \<cjs@cynic.net\> +81 90 7737 2974 [http://www.NetBSD.org](http://www.NetBSD.org)  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Make up enjoying your city life...produced by BIC CAMERA

---

<div class="post-metadata">

**Author:** ![Martin\_DeMello1](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Martin\_DeMello1](https://rubytalk.org/u/Martin_DeMello1)\
**Post date:** [14 December 2004 11:17 UTC](https://rubytalk.org/t/wiki-spam-report/15279/5 "2004-12-14T11:17:23Z")

</div>

Very gratifying 🙂

martin

> **···**
>
> Jim Weirich \<jim@weirichhouse.org\> wrote:
> 
> > &nbsp;&nbsp;46 updates to the wiki tarpit. Of those, we had ...  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3 innocent updates  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2 questionable updates  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1 update by me  
> > &nbsp;&nbsp;&nbsp;&nbsp;40 spams

---

<div class="post-metadata">

**Author:** ![David\_G\_Andersen](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@David\_G\_Andersen](https://rubytalk.org/u/David_G_Andersen)\
**Post date:** [13 December 2004 21:37 UTC](https://rubytalk.org/t/wiki-spam-report/15279/6 "2004-12-13T21:37:08Z")

</div>

On Tue, Dec 14, 2004 at 06:27:18AM +0900, martinus scribed:

> That is a very cool idea! But I am afraid this posting is the reason  
> why [http://www.rubygarden.org/ruby](http://www.rubygarden.org/ruby) currently is under attack from a lot  
> of spammers.

Are you sure you didn't slip into the tarpit? 🙂 It looks fine  
from here.

&nbsp;&nbsp;-Dave wonders if it might not be nice to have multiple  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;spammer / legitimate user detection heuristics, though.

---

<div class="post-metadata">

**Author:** ![James\_Britt6](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@James\_Britt6](https://rubytalk.org/u/James_Britt6)\
**Post date:** [14 December 2004 03:50 UTC](https://rubytalk.org/t/wiki-spam-report/15279/7 "2004-12-14T03:50:46Z")

</div>

Edgardo Hames wrote:

> **···**
>
> > On Tue, 14 Dec 2004 03:21:02 +0900, Jim Weirich \<jim@weirichhouse.org\> wrote:
> > 
> > > Wiki Spam Report  
> > > ----------------
> > > 
> > > I thought I would take some time and report on the wiki spam situation  
> > > on RubyGarden. As I hope you have noticed, the wiki has been  
> > > remarkably spam free. This email will tell you what measures we have  
> > > taken to get to this point.
> > 
> > What does spam look like on a wiki site?
> 
> The junk I'm accustomed to seeing are pages devoid of any Ruby content, but filled with links to sites apparently hawking Natural Nigerian Rolex Enhancements.
> 
> James

---

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [14 December 2004 04:15 UTC](https://rubytalk.org/t/wiki-spam-report/15279/8 "2004-12-14T04:15:05Z")

</div>

You asked ... Here's a link to an old page on the RubyGems wiki. Scroll down  
to the bottom of the page.

[http://rubygems.rubyforge.org/wiki/wiki.pl?action=browse&id=DeveloperGuide&revision=78](http://rubygems.rubyforge.org/wiki/wiki.pl?action=browse&id=DeveloperGuide&revision=78)

> **···**
>
> On Monday 13 December 2004 10:30 pm, Edgardo Hames wrote:
> 
> > On Tue, 14 Dec 2004 03:21:02 +0900, Jim Weirich \<jim@weirichhouse.org\> wrote:  
> > \> Wiki Spam Report  
> > \> ----------------  
> > \>  
> > \> I thought I would take some time and report on the wiki spam situation  
> > \> on RubyGarden. As I hope you have noticed, the wiki has been  
> > \> remarkably spam free. This email will tell you what measures we have  
> > \> taken to get to this point.
> > 
> > What does spam look like on a wiki site?
> 
> --  
> -- Jim Weirich jim@weirichhouse.org [http://onestepback.org](http://onestepback.org)  
> -----------------------------------------------------------------  
> "Beware of bugs in the above code; I have only proved it correct,  
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

---

<div class="post-metadata">

**Author:** ![Jim\_Weirich1](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@Jim\_Weirich1](https://rubytalk.org/u/Jim_Weirich1)\
**Post date:** [14 December 2004 06:19 UTC](https://rubytalk.org/t/wiki-spam-report/15279/9 "2004-12-14T06:19:57Z")

</div>

Curt is looking at the RubyGems wiki hosted by RubyForge (which has little to  
no spam protection ... hopefully that will change in the near future).

The tarpit is for the RubyGarden wiki.

> **···**
>
> On Monday 13 December 2004 11:46 pm, Curt Sampson wrote:
> 
> > It looks like the sandbox is not working for 221.197.18.150. If you look  
> > at RecentChanges, he's changed a lot of pages to add what seems to be  
> > mostly Chinese links to chinese websites. I've set preferences, and I'm  
> > still seeing it.
> 
> --  
> -- Jim Weirich jim@weirichhouse.org [http://onestepback.org](http://onestepback.org)  
> -----------------------------------------------------------------  
> "Beware of bugs in the above code; I have only proved it correct,  
> not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)

---

<div class="post-metadata">

**Author:** ![slonik\_AZ](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@slonik\_AZ](https://rubytalk.org/u/slonik_AZ)\
**Post date:** [14 December 2004 12:41 UTC](https://rubytalk.org/t/wiki-spam-report/15279/10 "2004-12-14T12:41:09Z")

</div>

Each act of applying a change to a Wiki can be seen as a "message".  
One can use email spam filter (with some modifications, of course) as  
a first line of defense. If a proposed wiki change looks as spam to  
"modified email spam filter" a user is confronted with a set of  
challenges such as read letters from a distorted bitmap, answer silly  
questions like Who invented Ruby?... etc.  
Alternatively, spam filter decides to silently forward the change to  
the Tarpit and also notify Wiki admin of the change if the probability  
of this message to be a legitimate one is higher that certain  
threshold.

--Leo--

> **···**
>
> On Tue, 14 Dec 2004 20:17:23 +0900, Martin DeMello \<martindemello@yahoo.com\> wrote:
> 
> > Jim Weirich \<jim@weirichhouse.org\> wrote:  
> > \> 46 updates to the wiki tarpit. Of those, we had ...  
> > \> 3 innocent updates  
> > \> 2 questionable updates  
> > \> 1 update by me  
> > \> 40 spams
> > 
> > Very gratifying 🙂
> > 
> > martin

---

<div class="post-metadata">

**Author:** ![Martin\_Ankerl](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@Martin\_Ankerl](https://rubytalk.org/u/Martin_Ankerl)\
**Post date:** [14 December 2004 07:12 UTC](https://rubytalk.org/t/wiki-spam-report/15279/11 "2004-12-14T07:12:18Z")

</div>

It was fine again after about 5 minutes, it sees that the system really  
works  
And no, i didn't slip into the tarpit 🙂

martinus
