SPAM protection (new)

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
fellchen
Posts: 158
Joined: Thu 21. Jul 2005, 15:48
Location: Wesel a. Rhein, Germany
Contact:

SPAM protection (new)

Post by fellchen »

Ok, for all they have further problems with spam robots, manual posted spam, fraud and other stupid things...

Bad Behavior works sometimes and sometimes not...
Take a look at my old posting with a video guide:
http://www.phpwcms.de/forum/viewtopic.php?t=10157

Now I have created a script which bans IP adresses and ranges.
Here the website for that script: http://antispam.7ways.biz

The features:
+ blocks visitors from website via IP range
+ saves traffic
+ every user is logged
+ log could be imported to Microsoft Excel (CSV import)
+ central daily updated IP ban list

I think that this script could be a better solution for the most people.
Visitors they're have an IP address which is blocked by a range would be redirected to:
http://antispam.7ways.biz/406.php A simple error page.

The next feature of this script:
+ spam bot protection like the Bad Behavior script (so you need only one script)

If people use that script and give me the IP addresses over the submit link on my script web site, I will add them to the black list and all other web site owner get the protection.

Have fun, Marko

PS: Good night, I'm hungry and my keyboard doesn't look like a pizza. See you tommorrow...
You should not take life too seriously,
or you will not even get out of it alive!
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

It works... perfectly!

Thank you, that's the first solution which solves my problem with spam!
pixelpublic GmbH | Agentur für Neue Medien und Gestaltung
trip
Posts: 657
Joined: Tue 17. Feb 2004, 09:56
Location: Cape Town, South Africa
Contact:

Post by trip »

Hi Please add your script details to this directory

http://phpwcms.raramuri.com

thanks
TriP
hendrik
Posts: 66
Joined: Thu 9. Dec 2004, 21:18
Location: Berlin
Contact:

Re: SPAM protection (new)

Post by hendrik »

fellchen wrote: Now I have created a script which bans IP adresses and ranges.
Hi Marko,

when I took a closer look to your script, I was wondering, if it maybe bans more IPs than planned.
For instance I saw in the ip_data.csv that there was blocked an IP_number like 84.2.44.161 and I think its because of the general range-ban for 61. (Besides, are they really all spammers?)

In short, I think that your line

Code: Select all

if(strstr($ip, $list)){
should be replaced by

Code: Select all

if(strpos($ip, $list)  === 0){
Taking the example above this would make sure that only IPs starting with 61 are banned and not IPs having 61 somewhere.

Am I right or wrong?

regards
Hendrik
Post Reply