Contact Board Admin MOD.. SpamBots's getting though?

Discuss phpBB in general.
Forum rules
Please post any phpBB 3.1.x related topics in the Asraeus discussion forum.

Contact Board Admin MOD.. SpamBots's getting though?

Postby Saeru » 21 Nov 2006, 22:38

I don't mean on here.. but on my own forum. I use the same mod, but am now finding spambots sending stuff though it. Is there away I could edit the mod to keep these spam messages from going though? This is really startting to get rather annoying, and they are also increasing in numbers slowly. The mod also says "Look for 'X-AntiAbuse' headers" But even finding that don't help, not really sure what to do there.

What would I be able to do to keep spam bots from sending mail though this?
Image
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]
User avatar
Saeru
Past Contributor
Past Contributor
 
Posts: 197
Joined: 17 Jun 2006, 23:58
Location: Behind a PHP book.

Postby Noobarmy » 22 Nov 2006, 05:04

setup a visual confirmation? or some sort of thing. like text box: "What are you? (Type in human)" then check if the text box's value = human.

something simple like that works quite well :)
Image
User avatar
Noobarmy
Past Contributor
Past Contributor
 
Posts: 651
Joined: 02 Jun 2006, 11:19
Location: UK
Real name: Anthony Chu

Postby Saeru » 22 Nov 2006, 07:44

something simple yes but not sure how I would code that.
Image
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]
User avatar
Saeru
Past Contributor
Past Contributor
 
Posts: 197
Joined: 17 Jun 2006, 23:58
Location: Behind a PHP book.

Postby poyntesm » 22 Nov 2006, 10:32

For me the best solution is to remove all the normal profile data from registration page. Then if any of that profile data arrives during registration it did not arrive from a human and you can stop it.
User avatar
poyntesm
Member
Member
 
Posts: 72
Joined: 19 Oct 2006, 10:13
Location: Dublin, Ireland

Postby Noobarmy » 22 Nov 2006, 13:16

@ponytesm we're talking more about a contact form rather then the registration form :D

@saeru
coding it could be quite simple. if you did a basic question with textbox as vc is a bit harder:

Into a TPL:
Code: Select all
<tr>
<td class="row2">
<span class="gen">What are you?</span>
<span class="gensmall">Type in human. This is to stop bots.</span>
</td>
<td class="row1">
<input type="text" name="antibot_question" value="" />
</td>
</tr>


into the PHP: (before the rest of the checks after standard stuff ect)

[php]
$antibot_question = ( isset( $HTTP_POST_VARS['antibot_question'] ) ) ? $HTTP_POST_VARS['antibot_question'] : '';

if ( $anti_bot_question == 'human' )
{
[/php]

and a curly bracket at the end

would be an easy way to do it i guess :D
Image
User avatar
Noobarmy
Past Contributor
Past Contributor
 
Posts: 651
Joined: 02 Jun 2006, 11:19
Location: UK
Real name: Anthony Chu

Postby igorw » 22 Nov 2006, 13:55

[php]if ( $anti_bot_question != 'human' )
{
message_die( GENERAL_MESSAGE, 'You didn\\'t answer the question correctly' );
}[/php]

Less code :P
User avatar
igorw
Past Contributor
Past Contributor
 
Posts: 2321
Joined: 01 Jun 2006, 20:48
Real name: Igor

Postby Noobarmy » 22 Nov 2006, 15:46

so true lol.
Image
User avatar
Noobarmy
Past Contributor
Past Contributor
 
Posts: 651
Joined: 02 Jun 2006, 11:19
Location: UK
Real name: Anthony Chu

Postby Saeru » 23 Nov 2006, 00:52

I rather have a check box then a text feald.
Image
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]
User avatar
Saeru
Past Contributor
Past Contributor
 
Posts: 197
Joined: 17 Jun 2006, 23:58
Location: Behind a PHP book.

Postby Noobarmy » 23 Nov 2006, 05:38

ok then something like:

in the TPL:
Code: Select all
<tr>
<td class="row2">
<span class="gen">Are you human?</span>
<span class="gensmall">Tick this box. This is to stop bots.</span>
</td>
<td class="row1">
<input type="checkbox" name="antibot_question" />Yes
</td>
</tr>


then PHP
[php]
if ( !isset($HTTP_POST_VARS['antibot_question']) )
{
message_die( GENERAL_MESSAGE, "You didn't answer the question correctly" );
}
[/php]
Image
User avatar
Noobarmy
Past Contributor
Past Contributor
 
Posts: 651
Joined: 02 Jun 2006, 11:19
Location: UK
Real name: Anthony Chu

Postby Saeru » 23 Nov 2006, 21:53

I'll try it and let ya know if it works out not.. The spam has been slowly growing. i'm now up to 20 some a day from this :(
Image
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]
User avatar
Saeru
Past Contributor
Past Contributor
 
Posts: 197
Joined: 17 Jun 2006, 23:58
Location: Behind a PHP book.

Postby Saeru » 24 Nov 2006, 23:44

Welp that failed. I installed it. tested it. Box has to be checked for the form to send.. welp.. still getting just as many spam emails as I was before.. :(
Image
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]
User avatar
Saeru
Past Contributor
Past Contributor
 
Posts: 197
Joined: 17 Jun 2006, 23:58
Location: Behind a PHP book.


Return to phpBB discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron