[BETA] Antispam for all fields (updated: 10-01-2009:V1.3.1)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Wicher »

Thanks for this update ramon. Just installed it and it seems to work fine.
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Ramon Fincken »

Great !!
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Wicher »

There is only one thing,
i have in the management "Sent mail on spam attempt" set to no, but i still get mails sent on spam attempts.

"Sent mail on spam attempt in HTML format" is also set to no.
Caki
Registered User
Posts: 43
Joined: Tue Sep 24, 2002 8:50 am
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Caki »

Hi Ramon,

i've just upgraded from 1.2.8 -> 1.2.9 and got this problem on my board. It is shown when user tries to change his profile or when new user wants to register.
I've tried to change location in my profile, and i got "Get lost_register896".
I didn't use refresh any time, just "sumbit" button.

I checked profile_add_body.tpl and i don't see any difference with previous versions (it is on server since 2007.) I run phpBB 2.0.20.

Please advise.
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Ramon Fincken »

Hi there,

thanks for reporting !

The fix can be found over here:
http://www.phpbbantispam.com/viewtopic.php?t=142

or wait an hour while i upload the new functions_antispam.php file
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Ramon Fincken »

Fix for Get lost_register896 in V 1.2.9


Follow this code OR download the zip package again and overwrite the
/includes/functions_antispam.php file.

Code: Select all


OPEN
/includes/functions_antispam.php

FIND
# around line 890
	// Time spent on page
	if (isset ($HTTP_POST_VARS['submit']) || isset ($HTTP_POST_VARS['avatargallery']) || isset ($HTTP_POST_VARS['submitavatar']) || isset ($HTTP_POST_VARS['cancelavatar']))
	{

REPLACE WITH
	// Time spent on page
	if ($mode == 'register'  && (isset ($HTTP_POST_VARS['submit']) || isset ($HTTP_POST_VARS['avatargallery']) || isset ($HTTP_POST_VARS['submitavatar']) || isset ($HTTP_POST_VARS['cancelavatar'])))
	{

Code: Select all

FIND
# around line 1050
	if ($mode == 'register' && fieldfest_on() && fieldfest_regadd()) {
		// Create or update fieldname
		$value = time();

REPLACE WITH
	if ($mode == 'register') {
		// Create or update fieldname
		$value = time();

See also:
http://www.phpbbantispam.com/viewtopic.php?t=142
Last edited by Ramon Fincken on Sun Jul 06, 2008 8:38 am, edited 1 time in total.
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
Caki
Registered User
Posts: 43
Joined: Tue Sep 24, 2002 8:50 am
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Caki »

HI Ramon,

thanx for the fix, it works fine for profile changes.
However, i still get the same "Get lost_register896" error while trying to register on my board. Can you do something about it ?

Cheers,
Caki
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Ramon Fincken »

Wicher wrote:There is only one thing,
i have in the management "Sent mail on spam attempt" set to no, but i still get mails sent on spam attempts.

"Sent mail on spam attempt in HTML format" is also set to no.
Hi Whicher, bug noted !

***
Caki wrote:HI Ramon,

thanx for the fix, it works fine for profile changes.
However, i still get the same "Get lost_register896" error while trying to register on my board. Can you do something about it ?

Cheers,
Caki
Hmm can you mail me your board files ( root + includes + admin PHP files ) ?
You can use my paypal email listed below.
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Ramon Fincken »

a wait !

could you enable the fieldfest ? All your fields have default names, the "username" field should be renamed and some hidden fields should be added.
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
Caki
Registered User
Posts: 43
Joined: Tue Sep 24, 2002 8:50 am
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Caki »

I have enabled fieldfest and activated "Register: Alter hidden names" and "Register: Add hidden names".
Now it works.
Thanks!
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Wicher »

Hello Ramon.

When i get those spam attemt mails, they look like this:

Code: Select all

Type:  Root path spoof attempt, time: 1215334289\nWord is below\n\nIP spoofer: 72.47.213.57\nText is below\n\nRoot path or phpEx spoof attempt, time: 1215334289\nGet vars are below:\n\nphpbb_root_path => http://www.iglesialcs.cl/newweb//images/.bash/in.txt?
\n
The linebreaks are not picked up.
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Ramon Fincken »

Caki wrote:I have enabled fieldfest and activated "Register: Alter hidden names" and "Register: Add hidden names".
Now it works.
Thanks!
Great ! Its best if you enable that function by default


****
Wicher wrote:Hello Ramon.

When i get those spam attemt mails, they look like this:

Code: Select all

Type:  Root path spoof attempt, time: 1215334289\nWord is below\n\nIP spoofer: 72.47.213.57\nText is below\n\nRoot path or phpEx spoof attempt, time: 1215334289\nGet vars are below:\n\nphpbb_root_path => http://www.iglesialcs.cl/newweb//images/.bash/in.txt?
\n
The linebreaks are not picked up.

oooo that type of mail !

if you want to do some digging you'll find out how and why these are sent ( see line 14 and up in functions_antispam.php )

Look for:
$root_spoof_check = true;
$root_spoof_check_instantban = true;
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Wicher »

I saw in function sentmail you have a TODO to use emailer, so i will wait for that.
I suspect it will be fixed then.
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Ramon Fincken »

Wicher wrote:I saw in function sentmail you have a TODO to use emailer, so i will wait for that.
I suspect it will be fixed then.
the root path / phpex mails AND the normal spam notices get sent by the mailer function indeed, not using phpbb's mailer for the time beeing.

However fixing that will not stop you from getting emails if you do no disable the setting in the file manually/hardcoded.
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [BETA] Antispam for all fields (updated: 26-06-2008:V1.2.9)

Post by Wicher »

It does not bother me that much ramon, maybe i will check it out when i have more time.
I just wanted to let you know i got them like that.
Locked

Return to “[2.0.x] MODs in Development”