Page 1 of 1

Blocking IPs

Posted: Fri Dec 30, 2011 5:22 pm
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

Re: Blocking IPs

Posted: Fri Dec 30, 2011 7:27 pm
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.

Re: Blocking IPs

Posted: Mon Jan 02, 2012 5:38 pm
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.

Re: Blocking IPs

Posted: Tue Jan 03, 2012 9:49 am
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

Re: Blocking IPs

Posted: Tue Jan 03, 2012 9:51 am
by oliverg
I did that.

The 'system' keeps deleting my entroies and overwriting them with some standard htaccess.

Re: Blocking IPs

Posted: Tue Jan 03, 2012 9:54 am
by garvinhicking
Hi!

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

Regards,
Garvin

Re: Blocking IPs

Posted: Tue Jan 03, 2012 9:57 am
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

Re: Blocking IPs

Posted: Tue Jan 03, 2012 10:00 am
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...

Re: Blocking IPs

Posted: Thu Jan 05, 2012 10:21 am
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