List Info

Thread: how to disable trackback?




how to disable trackback?
user name
2006-06-03 15:29:00
Atsushi Shibata <shibata...> writes:

> 
> Hi 
> 
> How about customizing
"portal_skins/coreblog2/tbping" ?
> 
> You can add "buzz words" filter to
customize this script. Check 
> "excerpt" variable.
> 
> Have fun 
> 
> On Sat, 3 Jun 2006 14:43:43 +0200, wrote:
> > I am using Coreblog2 0.9b.
> > I am also getting a lot of trackbacks spam daily.
> > I have changed in the blog settings/Entry
editing/default trackback  
> > status to Closed, and i keep getting a
> > lot of spam.
> > Any idea how can i desactivate trackbacks?
> > Right now, for me, it is more important to stop
this spam than having  
> > trackback activated.
> 
> ----------------------------------------
> Atsushi Shibata (Webcore Corp.)
> shibata...
> http://www.webcore.co.jp/
> ----------------------------------------
> _______________________________________________
> COREblog-en mailing list
> COREblog-en...
> http
://postaria.com/mailman/listinfo/coreblog-en
> Unsubscription writing to coreblog-en-leave...
> 
> 

Hi, thanks for your answer.

I have check that tbping file, but i really dont understand
what you mean.

I see this code inside:

------

excerpt = ''
if form.has_key('excerpt'):
    excerpt = form['excerpt']

-----

What do you suggest me to do to make this work as a filter?

Thanks







_______________________________________________
COREblog-en mailing list
COREblog-enpostaria.com
http
://postaria.com/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leavepostaria.com
how to disable trackback?
user name
2006-06-03 15:37:47
Hi .

On Sat, 3 Jun 2006 15:29:00 +0000 (UTC), wrote:
> Hi, thanks for your answer.
> 
> I have check that tbping file, but i really dont
understand what you mean.
> 
> I see this code inside:
> 
> ------
> 
> excerpt = ''
> if form.has_key('excerpt'):
>     excerpt = form['excerpt']
> 
> -----
> 
> What do you suggest me to do to make this work as a
filter?

Put floowing code after if block, so you can avoid trackback
including 
"buzz words" string.

if excerpt.lower().find("buzz words") == -1:
    return

If you use Python 2.3, you can also write like this.

if "buzz words" in excerpt.lower():
    return

I think you should learn more about Python .

Have fun 

----------------------------------------
Atsushi Shibata (Webcore Corp.)
shibatawebcore.co.jp
http://www.webcore.co.jp/
----------------------------------------
_______________________________________________
COREblog-en mailing list
COREblog-enpostaria.com
http
://postaria.com/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leavepostaria.com
how to disable trackback?
user name
2006-06-12 10:37:30
Atsushi Shibata wrote:
> Hi .
> 
> How about customizing
"portal_skins/coreblog2/tbping" ?

> Put floowing code after if block, so you can avoid
trackback including 
> "buzz words" string.
> 
> if excerpt.lower().find("buzz words") ==
-1:
>     return
> 
> If you use Python 2.3, you can also write like this.
> 
> if "buzz words" in excerpt.lower():
>     return
> 
> I think you should learn more about Python .
> 
> Have fun 
> 

I've been getting spam too - so i used Atsushi's
suggestion and extended 
it. Ideally should load the spamwords list from another
file.

You should add more words to the list (do a search for
something like 
trackback spam word list)

In "portal_skins/coreblog2/tbping" add following
code after
"excerpt =
Trainingool.convert_charcode(excerpt)":

spamWords = [
'casino',
'prilosec',
'viagra',
]

words = excerpt.split(' ')

for word in words:
   if word.lower() in spamWords:
     return




_______________________________________________
COREblog-en mailing list
COREblog-enpostaria.com
http
://postaria.com/mailman/listinfo/coreblog-en
Unsubscription writing to coreblog-en-leavepostaria.com
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )