Blocking IPs

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
oliverg
Regular
Posts: 43
Joined: Sat Feb 24, 2007 12:34 pm
Contact:

Blocking IPs

Post by oliverg »

I am really really happy that people in Russia and the Ukraine love to read my blog and try to post there many many comments maijnly promoting their viagra sites ;)

Whiule I am happy I would still like to block those IPs ;) Cause I have currebtly sevceral thousand spams in my backlocg an dit is kinda hard to moderate those by hand ;)

Now I am putting deny command in my .htaccess and serendipity (os something else, the spamdeny plugin?) keepos deleting my hand made entriews (how inconsiderate).

How can I comnvince the software to trust my hand made entries? Or is there a plugin to TOTALLY block (not only spam) these Spam IPs?

(Also I am using the bayes thing and I am not sure how this really helps me ... all spam is caught anyways, I need more spam not to show up AT ALL)

OG
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Blocking IPs

Post by Timbalu »

Now we know where they come from...., tell them to move to the LAND OF THE PLENTY! ;-)

First, tune your wordfilter checks to be more strict!

Do you additional use the email 'verify once' thing in the spamblock options? This sets all posted comments to moderate, even if obviously SPAM. We have a new version here in the development tree, which checks first, erases all comments checked by wordfilter meant to be SPAM and only passes the others. That might help you out, if that is your situation.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
oliverg
Regular
Posts: 43
Joined: Sat Feb 24, 2007 12:34 pm
Contact:

Re: Blocking IPs

Post by oliverg »

Well.

I don't want to SEE the stuff.

It gets filktered OK but I don't weant to let those ppl on my server ion the first place.

So word filters are not my promlem, 99.999% of the spam is coufght all right, but at the moment I have 10.000 spam comments tro (not) review.

This has to stop.

So I want to be able to block IPs without the system canceling my blocks again.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Blocking IPs

Post by garvinhicking »

Hi!

You can block those IPs through your .htaccess, simply place the DENY FROM parts before or after the #BGIN s9y / #END s9y block.

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/
oliverg
Regular
Posts: 43
Joined: Sat Feb 24, 2007 12:34 pm
Contact:

Re: Blocking IPs

Post by oliverg »

I did that.

The 'system' keeps deleting my entroies and overwriting them with some standard htaccess.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Blocking IPs

Post by garvinhicking »

Hi!

Please post how the .htaccess looks with your modification, and how it looks after the system overwrites it again.

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/
oliverg
Regular
Posts: 43
Joined: Sat Feb 24, 2007 12:34 pm
Contact:

Re: Blocking IPs

Post by oliverg »

At the moment it seems to work, not sure WEHEN the system overwrite ist:
The last line is mine ,..

--- snipp
order deny,allow

php_value session.save_path /home/www/servers/blog.oliver-gassner.de/tmp/session
php_value include_path /home/www/servers/blog.oliver-gassner.de/pages/bundled-libs:.

# BEGIN s9y
ErrorDocument 404 /index.php
DirectoryIndex /index.php
php_value session.use_trans_sid 0
php_value register_globals off

<Files *.tpl>
deny from all
</Files>

<Files *.sql>
deny from all
</Files>

<Files *.inc.php>
deny from all
</Files>

<Files *.db>
deny from all
</Files>

# END s9y
#SPAMDENY
Deny From 184.168.90.230
#/SPAMDENY

Deny From 91.212.226.136 31.184.238.21
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Blocking IPs

Post by garvinhicking »

Hi!

the config should be overwritten everytime you go to the s9y configuration and change for example any of the "index.php" settings. Also you have enabled the experimental .htaccess blocking form the antispam plugin that occassionally updates the .htaccess

I actually suggest you to disable that spamblock plugin option, it has proven to not really be helpful a lot, and does more trouble through .htaccess regeneration than good. It will get removed eventually.

Another way would be to add the DENY stuff at the top of the file instead of the bottom...
# 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/
oliverg
Regular
Posts: 43
Joined: Sat Feb 24, 2007 12:34 pm
Contact:

Re: Blocking IPs

Post by oliverg »

Put deny stuff at top now
Removed the updating option for htaccess of the SPAMDENY plugin.

The IPs I need to block are not many (at the moment) so mnanually works fine ...

(I had 80%TRaffic comeing from spammers ...)

OG
Post Reply