After getting more and more annoyed at the prevalence of comment spam, I went hunting around for a good way to automatically close comments on entries here after a certain number of days. What I stumbled upon was a few semi-manual ways, and after tweaking them a bit and adding an automation step, I have a system in place (and a publicly-available script) that will turn comments off after 60 days.

I started off by playing around with David Raynes’s MT-Close, but didn’t like how I didn’t get much in the way of feedback and that it wouldn’t be trivial to automate. That led me to a bit more Googling, which pointed me in the direction of a PHP script by Kevin Schumacher that will close comments after however many hours or days you choose. I ran it once, though, and noticed an issue — the script sets comments to closed on all entries older than the specified age, even if they never had comments enabled in the first place. And while this is a small point, it didn’t work well in my layout (the comment banner would be added to all these entries, and I didn’t like that). Likewise, the script didn’t differentiate among different weblogs on the same Movable Type installation, instead closing comments on all weblogs at the same time.

Happily, Kevin released his script under a license that lets me modify it, so I did, and created a derivative version that correctly handles individual weblogs and the difference between comment-enabled and comment-disabled entries. It’s closecomments.php version 1.1JL, and it’s released under the same (well, updated) Creative Commons license — the Attribution-NonCommercial-ShareAlike license.

There were two remaining problems — I still needed a trigger to run the script, and then I needed a way to force a rebuild of the affected entries so that the comment form would be removed from the entries’ archive pages. I found a solution to both in a posting by Chris Hilts — he suggested a cron job that called the closecomments script, and the mt-rebuild script which could be called immediately afterwards and would handle the rebuilding.

And there you have it — an automated way to close comments after 60 days, all in an effort to give the comment spammers a few less targets. I hope that it’s useful to other people!

Comments

I’m glad you found my page useful. Would you mind correcting the last name from Mills to Hilts? Thanks very much!

• Posted by: Chris Hilts on Sep 1, 2004, 11:14 PM

Done — sorry ‘bout that!

• Posted by: Jason on Sep 1, 2004, 11:19 PM

Thanks for this. Ignore my other comment (on MT-Blacklist) asking “how’d you do that?”.

• Posted by: James McNally on Sep 10, 2004, 11:03 AM
Please note that comments automatically close after 60 days; the comment spammers love to use the older, rarely-viewed pages to work their magic. If comments are closed and you want to let me know something, feel free to use the contact page!

bengkulutoto

https://mlcclinic.com.au/

vikingtoto

https://kidneystonemelbourne.com.au/causes/

https://kidneystonemelbourne.com.au/treatment/treatment-of-ureteric-stones/

bengkulutoto

bengkulutoto

bengkulutoto

vikingtoto

vip888

toto

cancertoto

vikingtoto

toto 4d

toto 4d

slot88

vikingtoto

p>bengkulutoto

สล็อตเว็บตรง

https://www.xde.com.ph/

slot gacor

https://imperialvets.com/imperial-animal-hospital/contact-us/

densustoto

dewaking

slot

slot

slot

cancertoto

cancertoto

situs slot

cancer toto

slot

bengkulutoto

slot

toto slot

situs slot

coloktoto login

bengkulutoto

slot

babeltoto

cancertoto

babeltoto

bengkulutoto

bengkulutoto

slot88

スマスロ

malukutoto

hukumtoto

vikingtoto

viking toto

malukutoto

top1toto

tasiktoto

tasiktoto

dewaking

dewaking

situs toto

cancer toto

cancertoto

https://cashwave.live/payment-partner/

vikingtoto

https://www.mundwiler-juwelen.ch/kontakt/

piktoto

heroslot88

bengkulutoto

vikingtoto

toto

cancertoto

wiltoto

slot gacor

bengkulutoto

vikingtoto

https://www.joyd.my/brand/moda/

bengkulutoto

mamatogel

vespa36

vespa36

coktogel

batmantoto login

coktogel

batmantoto

hukum toto

vikingtoto

viking toto

cancertoto

top1toto

cancertoto

batmantoto.de

cancertoto

kudahoki

batmantoto login

tasiktoto

paitocambodia.name

paitochina.blog

bengkulutoto

vikingtoto

depo 5k

viking toto

SITUS SLOT ONLINE

piktoto

toto slot

kartutoto

batman toto

wisdomtoto

toto online

slot toto

situs toto

8kbetplay

slot 5k

piktoto

8kbetplay

situs slot88

slot 4d

toto togel

situs toto

bandar togel

https://prediksibatmantogel4d.com/

cancertoto

cancertoto

batmantoto

top1toto

top1toto

bydplay

piktoto

bydplay

citibet88

citibet88

cancertoto

top1toto

situs toto cas89

japanlotto.store

kakaktogel

bengkulutoto

piktoto

toto

cancer toto

bengkulutoto

bengkulutoto

bengkulutoto

piktoto

babeltoto

Rtp Slot Gacor

piktoto

Sbobet

Slot Qris

piktoto

Slot Gacor

Toto

hokijp68

bengkulutoto

cancer toto

piktoto

bengkulutoto

rebahin

Savefrom

slot88

slot jackpot

toto

toto

coloktoto.nl

toto

batmantoto login

https://kidneystonemelbourne.com.au/kidney-stones/

vikingtoto

toto

altartoto

toto

piktoto

jitu26

jitu26

pokemontoto

piktoto

vespa36

vespa36

piktoto

cancertoto

batmantoto

batmantoto

piktoto

batmantoto

batmantoto

batmantoto

situs togel

togel online

cancer toto

vespa36

vespa36

bengkulutoto

cancertoto

slot toto

toto 4d

cancer toto

top1toto

link toto

toto wuhan

situs toto

toto macau

toto slot gacor

daftar toto

batmantoto

coloktoto login

coloktoto login

toto

malukutoto

vespa36

vespa36

jitu26

jitu26 resmi

piktoto

toto

tasiktoto

babeltoto

babeltoto

babeltoto

babeltoto

babeltoto

pokemontoto

rexonatoto

babeltoto

babeltoto

batmantoto

batmantoto

coloktoto

cancertoto

cancertoto

cancertoto

batmantoto login

toto

vespa36

pokemontoto

situs toto

coktogel login

slot gacor

slot toto

malukutoto

usahatoto

piktoto

situs toto

usahatoto

laetoto login

unsurtoto

unsurtoto

piktoto

malukutoto

top1toto

unsurtoto

malukutoto

unsurtoto

unsurtoto

toto

vespa36

vespa36 resmi

vespa36

vespa36

piktoto

link gacor

cancertoto

piktoto

link gacor

pokemontoto

rajalangit77 official

rajalangit77 togel

https://www.terangtampil.xyz/

malukutoto

top1toto

babeltoto

babeltoto

piktoto

jitu26

jitu26

vespa36

vespa36

viking toto

sesetoto

batmantoto login

bengkulutoto

vespa36

top1toto

vespa36

labirintoto

gelasjitu

balontoto

toto slot

pokemontoto

malukutoto

สล็อตเว็บตรง

https://wiltoto.cz/wap/

https://wiltoto.tw/user/

https://wiltoto.pw/register/

coktogel

coktogel

paito taiwan

coktogel

vespa36

malukutoto

vespa36

pokemontoto

cas89 login

indototo

raja88

tasiktoto

tasiktoto

coktogel

hukumtoto

cancertoto

wisdomtoto

cancertoto

cancertoto

cancertoto

cancertoto

situs toto

cancertoto

toto slot

cancertoto

cancertoto

situs gacor

slot gacor

situs slot

jitu26

jitu26

jitu26

situs toto

babeltoto

babeltoto

vespa36

vespa36

jitu26

cancertoto

jitu26

pokemontoto

malukutoto

malukutoto

malukutoto

cancertoto

slot gacor

situs toto

toto macau

vespa36

vespa36

bengkulutoto

bengkulutoto

toto

bengkulutoto

tartoto

tartoto

tartoto

jitu26

jitu26

4DHOKI

kientoto

babeltoto

babeltoto

babeltoto

babeltoto

babeltoto

kicautoto

situs toto

dewaking

babeltoto

rajaking

pangkutoto

pokemontoto

jitu26

kicautoto

slot gacor

jitu26

top1toto

cancertoto

cancertoto

cancertoto

best usa casinos online

majumapan99

babeltoto

bengkulutoto

situs 5k

depo 5k

gacor

medantoto

medantoto

pokemontoto

medantoto

vikingtoto

tasiktoto

slot jp

vespa36

vespa36

depo 5k

situs toto

bengkulutoto

bengkulutoto

rajalangit77

babeltoto

bengkulutoto

bengkulutoto

https://bestroofings.ca/about/

bengkulutoto

tasiktoto

cancertoto

rajaking

situs toto

situs toto

cancertoto

kudahoki

bulantogel

bulantogel

cancertoto

kudahoki

pokemontoto

kudahoki

rajaking

cancertoto

raja king

kari4d

bengkulutoto

kaostogel

kaostogel

kaostogel

kaostogel

pokemontoto

bengkulutoto

babeltoto

babeltoto

KUDAHOKI

bengkulutoto

slot gacor

bengkulutoto

top1toto

bengkulutoto

babeltoto

paito hk

bengkulutoto

cancertoto

coktogel

tasiktoto

rajaking

bengkulutoto

bengkulutoto

tasiktoto

tasiktoto

cancertoto

top1toto

bengkulutoto

bengkulutoto

vikingtoto

rajaking

bengkulutoto

bengkulutoto

bengkulutoto

vikingtoto

toto

slot

depo 5k

pokemontoto

situs toto

phoenixreslabs.com

tasiktoto

tasiktoto

kari4d

pangkutoto

vikingtoto

flokitoto

pokemontoto

gelasjitu

gelasjitu login

gelasjitu daftar

gelasjitu.org

flokitoto

slot

flokitoto

flokitoto

flokitoto

altartoto

flokitoto

flokitoto

flokitoto

bengkulutoto

bengkulutoto

flokitoto

slot

flokitoto

wak89

babeltoto

flokitoto

babeltoto

flokitoto

flokitoto

flokitoto

flokitoto

bengkulutoto

bengkulutoto

tarungtoto

bengkulutoto

bengkulutoto

bengkulutoto

KASKUSTOTO

KASKUSTOTO

flokitoto

tasiktoto

tasiktoto

flokitoto

flokitoto

flokitoto

bengkulutoto

flokitoto

flokitoto

flokitoto

flokitoto

flokitoto

flokitoto

kari4d

kari4d

bengkulutoto

bengkulutoto

bengkulutoto

COKTOGEL

flokitoto

flokitoto

vikingtoto

situs toto

situs toto

situs toto

bengkulutoto

slot qris

flokitoto

flokitoto

flokitoto

kari4d

kari4d

flokitoto

flokitoto

flokitoto

flokitoto

toto hoki

toto jp

kari4d

pascol4d

kari4d

toto

bengkulutoto

tasiktoto

ngawitoto

situs toto

babeltoto

flokitoto

flokitoto

bandar togel

angkringan138

slot gacor

pascol4d

pascol4d

kari4d

kari4d

kicautoto

flokitoto

situs slot

slot gacor mahjong

https://linkneon88.com/

toto

flokitoto

flokitoto

tasiktoto

tasiktoto

bengkulutoto

hoki

slot

toto

hoki

bengkulutoto

bengkulutoto

flokitoto

flokitoto

lgomax99

lgomax99

lgowin99

lgowin99

mpo500

hukumtoto

kicautoto

hukumtoto

hukumtoto

situs toto

situs toto

flokitoto

babeltoto

babeltoto

https://supercok.com/

JEMARI4D

JEMARi4D

JEMARI4D

pas4d

flokitoto

flokitoto

laetoto

laetoto

sekutu4d

flokitoto

vespa36

vespa36

flokitoto

flokitoto

flokitoto

tasiktoto

tasiktoto

kakek111

flokitoto

flokitoto

ternatetoto

flokitoto

mega888

flokitoto

bengkulutoto

tasiktoto

pascol4d

kari4d

pascol4d

situs toto

wisdomtoto

situs toto

toto macau

situs toto

pascol4d

pascol4d

toto

laetoto

jakartaslot88

jakartaslot88

desabet

tasiktoto

situs toto

desabet

situs toto

top1toto

duniatoto

flokitoto

flokitoto

kari4d

bulantogel

bulantogel

tegaltoto

tegaltoto

tegaltoto

desabet

desabet

tegaltoto

FILM PORNO