Jörg Kantel | 1 Feb 07:48
Picon

Trackback-Spam

Hi to all,

this morning my COREBlog was overwhelmed with Trackback-Spam. For fighting Comment-Spam I've got a nice
little Script from Atsushi Shibata. Now I need the same for trackbacks (I tried it by myself but I couldn't
recognize the naming of the variables. Could anybody help?

Thanks in advance...

J"org (aka Der Schockwellenreiter)
--

-- 
J"org Kantel <joerg@...>
Der Schockwellenreiter <http://blog.schockwellenreiter.de/>
_______________________________________________
COREblog-en mailing list
COREblog-en@...
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave@...

Frank Scholz | 1 Feb 09:51
Picon

Re: Trackback-Spam

Good morning,

Jörg Kantel (joerg@...) schrieb:
> this morning my COREBlog was overwhelmed with Trackback-Spam.
> For fighting Comment-Spam I've got a nice little Script
> from Atsushi Shibata. Now I need the same for trackbacks
> (I tried it by myself but I couldn't recognize the naming
> of the variables. Could anybody help?
if you refer to http://blog.schockwellenreiter.de/1757
it should look like this

  ent = container.blog.get_entry(i)
  for com in ent.trackback_list():
    if com.title == "schrottblog": # com.blog_name == "schrottblog":
                                   # com.url == "http://schrottblog.com":
     ent.deleteTrackback(int(com.id))

Hope I got everything right. ;-)

Ciao,
dev

_______________________________________________
COREblog-en mailing list
COREblog-en@...
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave@...

Ng Pheng Siong | 24 Mar 03:17
Favicon

Re: Trackback-Spam

On Tue, Feb 01, 2005 at 09:51:12AM +0100, Frank Scholz wrote:
>   ent = container.blog.get_entry(i)
>   for com in ent.trackback_list():
>     if com.title == "schrottblog": # com.blog_name == "schrottblog":
>                                    # com.url == "http://schrottblog.com":
>      ent.deleteTrackback(int(com.id))

I've been getting hit almost daily. I can't stand it anymore! So I made a
small improvement: 

The statement ent.deleteTrackback(...) invokes method deleteTrackback() in
class Entry in the file Entry.py.

I added a property to the blog, called "close_zapped_trackbacks" and set it
to 1.

I then added code to in method deleteTrackback() to test for and act on
this property. Here's what the modified method looks like:

    def deleteTrackback(self,id):
        """ Delete a trackback """
        if not id in self.trackbacks:
            raise KeyError,"Trackback(ID:%d) does not exists."
        self.trackbacks.remove(id)

        # BEGIN ngps mods

        cb = self.blog()
        if cb.hasProperty("close_zapped_trackbacks") and cb.getProperty("close_zapped_trackbacks") == 1:
            self.receive_trackback = 2
(Continue reading)

Brian Sullivan | 24 Mar 17:33
Picon

Re: Trackback-Spam

Has anybody implemented the rel="nofollow" tag for comment links for
COREBlog comments.

I realize that there are differing opinions on whether this will have
any effect on the amount of spam long term but it will almost
certainly prevent page rank manipulation via blog comments (which is
the purpose of blog spam as far as I can tell).

Every little bit helps.
_______________________________________________
COREblog-en mailing list
COREblog-en@...
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave@...

Luistxo Fernandez | 2 Feb 08:34

Re: Trackback-Spam

After the exchange of tips here yesterday (thanks to all), we produced our 
own python script to be run in our www.eibar.org site:

  for i in range(1, 300):
     try:
        ent = context.get_entry(i)
        for com in ent.trackback_list():
           if com.title.startswith ("texas") o com.title.startswith ("online"):
              ent.deleteTrackback(int(com.id))
              print "deleted %s's comment" % com.title
     except:
         pass
  print "Done."
  return printed

Being Eibar.org a community of coreblogs we placed that at the root like 
www.eibar.org/scriptPLACEDhere and our main blog's evil trackbacks were 
deleted (as far as you have less than 300 entries...), but it also worked 
with any blog placed below, without copying the script, like 
www.eibar.org/blogak/teknosexua/scriptPLACEDhere or 
www.eibar.org/blogak/sarasua/scriptPLACEDhere

scriptPLACEDhere is just a dummy name. We used another ID for the script.

Luistxo Fernandez
LFernandez@... - 675 706 553

CodeSyntax - http://www.codesyntax.com/
Azitaingo Industrialdea 3K
E-20600 EIBAR
(Continue reading)

Luistxo Fernandez | 2 Feb 15:57

Re: Trackback-Spam

I wrote:
>After the exchange of tips here yesterday (thanks to all), we produced our 
>own python script to be run in our www.eibar.org site:

little improvement over the script: on the parameter list put spammer='xxx' 
and the code as follows:

for i in range(1, 300):
    try:
       ent = context.get_entry(i)
       for com in ent.trackback_list():
          if com.title.startswith (spammer):
             ent.deleteTrackback(int(com.id))
             print "deleted %s's comment" % com.title
    except:
        pass
print "Done."
return printed

Now we have a variable called spammer. Called like
  eibar.org/blogak/sarasua/scriptPLACEDhere?spammer=texas
or  eibar.org/blogak/sarasua/scriptPLACEDhere?spammer=cybersex
we may reuse the script depending on the spammer of the day.

However, as Frank notes, a more robust defense against spam should be 
embedded in the product.

Luistxo Fernandez
LFernandez@... - 675 706 553

(Continue reading)

Frank Scholz | 2 Feb 11:18
Picon

Re: Trackback-Spam

Hi,

tonight I thought about a few additions to
make this comment and trackback fighting a bit easier.

1) integrate the remove script into COREBlog
   Add in the management interface for the comments
   and trackbacks an additional option to remove all
   occurrences with this title, blog_name, url,...
   Each checkable to in- or exclude in the selection.

2) in a next step add a "and block further comments/trackbacks"
   based on pattern matching, defaults from the current
   comment or trackback. Perhaps based on client IP or
   hostname too.

3) and, as the last thing still puts stress on the zope
   server, the option to call an external program and
   add dynamically a (temporary) (firewall) rule to
   block access from that IP on the TCP-level.
   I did this years ago with Check Point FW-1 based on
   incidents we got live from the weblogs or from the IDS,
   and afaik something like this should work for Linux
   based systems with iptables too.
   Or at least we could inject a Deny-rule into Apache.

--> http://netzflocken.de/91

Ciao,
dev
(Continue reading)

Frank Scholz | 2 Feb 23:12
Picon

Re: Trackback-Spam

Hi,

> tonight I thought about a few additions to
> make this comment and trackback fighting a bit easier.
>
> 1) integrate the remove script into COREBlog
>    Add in the management interface for the comments
>    and trackbacks an additional option to remove all
>    occurrences with this title, blog_name, url,...
>    Each checkable to in- or exclude in the selection.
I've started with some work on this.
--> http://netzflocken.de/92

As I'm still learning Python/Zope I'll ask for your
comments and suggestions before I continue too much
in a perhaps wrong direction.

Ciao,
dev

_______________________________________________
COREblog-en mailing list
COREblog-en@...
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave@...

Ng Pheng Siong | 1 Feb 22:25
Favicon

Re: Trackback-Spam

On Tue, Feb 01, 2005 at 09:51:12AM +0100, Frank Scholz wrote:
> if you refer to http://blog.schockwellenreiter.de/1757
> it should look like this
> 
>   ent = container.blog.get_entry(i)
>   for com in ent.trackback_list():
>     if com.title == "schrottblog": # com.blog_name == "schrottblog":
>                                    # com.url == "http://schrottblog.com":
>      ent.deleteTrackback(int(com.id))
> 
> Hope I got everything right. ;-)

It works. Thanks.

I got hit and I blogged about it and as I was typing the blog I got hit
non-stop. Sheesh!

Is there a way to turn off trackbacks totally? Turn on moderation and
redirect all to /dev/null?

Thanks. Cheers.

--

-- 
Ng Pheng Siong <ngps@...> 

http://sandbox.rulemaker.net/ngps -+- M2Crypto, ZServerSSL for Zope, Blog
http://www.sqlcrypt.com -+- Database Engine with Transparent AES Encryption
_______________________________________________
COREblog-en mailing list
COREblog-en@...
(Continue reading)

Igor Leturia | 1 Feb 09:54

Re: Trackback-Spam

Jörg Kantel wrote:
Hi to all, this morning my COREBlog was overwhelmed with Trackback-Spam. For fighting Comment-Spam I've got a nice little Script from Atsushi Shibata. Now I need the same for trackbacks (I tried it by myself but I couldn't recognize the naming of the variables. Could anybody help? Thanks in advance... J"org (aka Der Schockwellenreiter)
I have had 5 trackback-spams this morning too, so I'm interested in such a script. Maybe if you send me Atsushi's comment-spam fighting script I could help...

------------------------------------------------------
Igor Leturia Azkarate
Elhuyar I+G+B
Zelai Haundi kalea, 3
Osinalde industrialdea
20170 Usurbil
(+34) 943 36 30 40
igor-VfKEysY0PXFBDgjK7y7TUQ@public.gmane.org / www.elhuyar.org
_______________________________________________
COREblog-en mailing list
COREblog-en@...
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave@...
Jörg Kantel | 1 Feb 10:03
Picon

Re: Trackback-Spam

You can find it here: <http://blog.schockwellenreiter.de/1757>

Greetings
J"org

> [	This message was sent as HTML. The text you see here was	]
> [	generated by Mailsmith; the original HTML is available as	]
> [	an attachment.												]
> 
>    Jörg Kantel wrote: 
> 
> 
> Hi to all,
>  this morning my COREBlog was overwhelmed with Trackback-Spam. For 
> fighting Comment-Spam I've got a nice little Script from Atsushi 
> Shibata. Now I need the same for trackbacks (I tried it by myself but I 
> couldn't recognize the naming of the variables. Could anybody help?
>  Thanks in advance...
>  J"org (aka Der Schockwellenreiter)
>     
> I have had 5 trackback-spams this morning too, so I'm interested in such 
> a script. Maybe if you send me Atsushi's comment-spam fighting script I 
> could help...
> 
> 
> 
> Document Title: 
> 
> ------------------------------------------------------
>  IGOR LETURIA AZKARATE
> Elhuyar I+G+B
> Zelai Haundi kalea, 3
> Osinalde industrialdea
> 20170 Usurbil
> (+34) 943 36 30 40
> _ igor@... _ / _ www.elhuyar.org _    
--

-- 
J"org Kantel <joerg@...>
Der Schockwellenreiter <http://blog.schockwellenreiter.de/>
_______________________________________________
COREblog-en mailing list
COREblog-en@...
http://postaria.com/cgi-bin/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leave@...


Gmane