Too much traffic?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Matthias2
Regular
Posts: 71
Joined: Sun Sep 17, 2006 2:22 pm

Too much traffic?

Post by Matthias2 »

running S9Y v. 1.3.1
plugin: serendipity_event_spamblock

In this month my blog caused 7.01 GB traffic?

In access_log most antries are Trackbackspams like this:
"POST /comment.php?type=trackback&entry_id=XXX...."

In antispam plugin I disabled trackbacks und use Akismet.

I added this code

Code: Select all

# BEGIN ANTI SPAM
<Files comment.php>
 # short 403 error-message
 ErrorDocument 403 "403 Forbidden
 
 # Mark bots whose user agent name is starting with "TrackBack" as SPAM
 BrowserMatch ^TrackBack is_trackback_spammer
 # Mark bots don't sending a user agent name at all as SPAM
 BrowserMatch ^$ is_trackback_spammer
 
 # Lock them out
 Order Allow,Deny
 Allow from all
 deny from env=is_trackback_spammer
</Files>
# END ANTI SPAM
to my .htaccess in S9y root

AND I added this code

Code: Select all

if ($_REQUEST['type'] == 'trackback') die('Disabled');
in my comments.php

Can I do more to prevent trackback spam? This entry is furthermore listed in access_log.

Another frequent entry in access_log is:
"/index.php?/plugin/fetchAvatar_d41d8cd98f00b204e9...."

I disabled Avatar caching but this entry is furthermore listed in access_log very often.

May I delete this folders?
/templates_c/serendipity_event_avatar
/templates_c/favatar

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

Re: Too much traffic?

Post by garvinhicking »

Hi!

That's quite complete, what you did, yes. :)
Another frequent entry in access_log is:
"/index.php?/plugin/fetchAvatar_d41d8cd98f00b204e9...."

I disabled Avatar caching but this entry is furthermore listed in access_log very often.
This comes from the gravatar plugin. It always needs to fetch gravatars like that, no matter if you enabled or disabled caching.
May I delete this folders?
/templates_c/serendipity_event_avatar
/templates_c/favatar
You can. if those were needed, they would be recreated.

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/
Matthias2
Regular
Posts: 71
Joined: Sun Sep 17, 2006 2:22 pm

Post by Matthias2 »

Hi Garv,

thanks for reply!

Is it possible to disable Gravatar plugin for several articles? I have an article with more than 800 comments, increasing. This article loads very slowly. after deinstal Gravatar plugin this article loads much faster.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

No, you can only globally enable or disable the gravatar plugin. Restricting it for certain blog articles is IMHO quite useless, commenting blog users would not understand why sometimes their gravatar works and why not always.
Is it possible to disable Gravatar plugin for several articles? I have an article with more than 800 comments, increasing. This article loads very slowly. after deinstal Gravatar plugin this article loads much faster.
Hm, 800 comments are really a lot. My only thought would be to use an external hoster like Disquus, which breaks down the comment overview with folded/unfolded comments quite nicely. Sadly there is no native s9y implementation for this yet, because when not all comments would be shown instantly, that could save up a lot of traffic.

Well, if I had more comments in my own blog, I would have more motivation in coding such a plugin, hehe. ;-)

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/
Matthias2
Regular
Posts: 71
Joined: Sun Sep 17, 2006 2:22 pm

Post by Matthias2 »

Hhmm, paging through comments would rather be nice.

With actual S9Y version and without gravatar plugin all articles load in good speed an I hope I got the traffic problem under control.

Thanks for help!
Post Reply