Page 1 of 1

Disabling comments/trackbacks?

Posted: Sun Feb 25, 2007 12:26 am
by Octane
Is there a way to disable comments and/or trackbacks on my serendipity blog?

Thanks

Re: Disabling comments/trackbacks?

Posted: Mon Feb 26, 2007 8:58 am
by garvinhicking
Hi!

Please read the FAQ: http://www.s9y.org/11.html#A30

Regards,
Garvin

Posted: Wed Mar 14, 2007 4:27 pm
by Harald Weingaertner
Garvin, if i follow the FAQ, it would still be possible to receive trackbacks from Spammers, right?

How do i deny trackbacks from external pages instead of just not displaying them? Or did i misunderstood the FAQ?

Posted: Thu Mar 15, 2007 10:18 am
by garvinhicking
Hi!

I just appended the FAQ with this:

Code: Select all

You can turn off to receive trackbacks/comments in the configuration of your spamblock plugin. To totally ban trackbacks from your site, you can edit the serendipity file *comment.php* After the first <?php add this:

if ($_REQUEST['type'] == 'trackback') die('Disabled');

The other way you have is to edit your .htaccess file and add a mod_rewrite (if your server supports that, of course) rule to block calls to your comment.php:

RewriteCond %{QUERY_STRING} ^.*type=trackback.*$ [NC]
RewriteRule ^.*comment.php.*$ - [F]
HTH,
Garvin