Disabling comments/trackbacks?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Octane
Regular
Posts: 5
Joined: Wed Jun 28, 2006 1:33 pm

Disabling comments/trackbacks?

Post by Octane »

Is there a way to disable comments and/or trackbacks on my serendipity blog?

Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Disabling comments/trackbacks?

Post by garvinhicking »

Hi!

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

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Harald Weingaertner
Regular
Posts: 474
Joined: Mon Mar 27, 2006 12:32 am

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply