[2.0.20] registration disable website signature

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
32
65%
Very Good
6
12%
Good
4
8%
Fair
3
6%
Poor
4
8%
 
Total votes: 49

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Sat Apr 08, 2006 7:54 pm

Works with 2.0.20. :D

ratcatcher
Registered User
Posts: 34
Joined: Sun Apr 16, 2006 7:51 pm
Location: Kildare, Republic of Ireland

Post by ratcatcher » Sun Apr 16, 2006 10:34 pm

EXreaction wrote: I uploaded 1.0.2 yesturday...and that makes it so that even if they do enter in something in the sig/website section while they register, it is blanked out...


It might be better to change it back so that the fields are hidden but a bot CAN enter data into those fields. That way, if there IS anything in the website or signature field at registration, you know for sure it's a bot since a human wouldn't see the fields, so wouldn't enter anything in them.

You could then, if there was something in either of those fields, automatically delete the registration.
Nick

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Sun Apr 16, 2006 11:14 pm

That would be a good idea...auto delete(or just deny the registration...and mabey ban the IP) if they enter it in...something that I could look into later...I am working on my site right now...which comes first. :P

I will think about it. :D

ratcatcher
Registered User
Posts: 34
Joined: Sun Apr 16, 2006 7:51 pm
Location: Kildare, Republic of Ireland

Post by ratcatcher » Mon Apr 17, 2006 2:46 pm

Just FYI, this mod interferes with the Realname one.

See:

http://www.phpbb.com/phpBB/viewtopic.ph ... c&start=30
Nick

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Mon Apr 17, 2006 3:53 pm

ratcatcher wrote: Just FYI, this mod interferes with the Realname one.

See:

http://www.phpbb.com/phpBB/viewtopic.ph ... c&start=30


Ah, ya, it could...you would just have to install the Realname Mod first...then it should work fine. :)

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Sun Apr 23, 2006 12:08 am

Working on 1.1.0(the next version) right now...it denys the registration if the user enters anything in in the hidden fields, and I am working on getting it to ban that persons IP address(it will be optional in the mod...if the person that installs the mod doesn't want the bots IP banned, they just change a true to false...then it won't)...so as soon as I figure out how to do that(I asked in the MOD Writers Discussion forum...someone should be able to help me with it), I will upload it. 8)


...and it shouldn't interfere with any mods anymore(at 1.1.0)



EDIT: 1.1.0 is done, and has been submitted to the mod team. 8)

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Sat May 13, 2006 5:32 pm

Just submitted 1.1.1...I missed a few things in 1.1.0...the main thing I added was session_end()...so if the bot's IP is banned, their session is ended immediatly...otherwise they could just keep trying to register until they disconnected from the site...

EDIT: Oops...messed up a line in 1.1.1...just submitted(well, yesturday) 1.1.11! :lol:

User avatar
webmacster87
Former Team Member
Posts: 3758
Joined: Fri Jun 11, 2004 2:30 am
Location: San Mateo, CA
Name: Douglas Bell
Contact:

Post by webmacster87 » Fri May 19, 2006 11:18 pm

MOD Updated to version 1.1.11
See first post for Download Link

Me-Crazy
I've Been Banned!
Posts: 142
Joined: Thu Apr 27, 2006 4:45 am

Post by Me-Crazy » Sat May 20, 2006 12:06 am

hi,

Can i allow signatures?

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Sat May 20, 2006 6:35 pm

Ya, if you only want to remove the website link, do this:

Code: Select all

##############################################################
## MOD Title: No Website during registration
## MOD Author: EXreaction < exreaction@gotechzilla.com > (Nathan Guse) http://www.gotechzilla.com
## MOD Description: When a user registers, the website section is removed, and they are not
##        allowed to register if they enter in anything
## MOD Version: 1.1.11
##
## Installation Level: (Easy)
## Installation Time: ~2 Minutes
## Files To Edit: includes/usercp_register.php
##                templates/subSilver/profile_add_body.tpl
## Included Files: none
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## This is my first mod for phpbb! :D
## Works perfect for me with easymod on a clean phpBB2 install.
##############################################################
## MOD History:
## 
##   2006-02-22 - Version 1.0.0
##      - (no version notes)
##   2006-03-12 - Version 1.0.1
##      - Re-wrote the MOD...I learned a much easier and better way to do it since 1.0.0
##   2006-03-17 - Version 1.0.2
##      - Fixed it so bots can't fill it in even though it is hidden
##            (basically it is version 1.0.0 plus version 1.0.1)
##   2006-03-27 - Version 1.0.3
##      - Fixed a few things...
##   2006-04-23 - Version 1.1.0
##      - Made it so that instead of just setting the website sig to nothing, if someone enters anything in
##            they are not allowed to register(only stops bots(that enter something in there)...
##            people won't see it anyways, so they won't enter anything in)
##   2006-05-13 - Version 1.1.1
##      - Added session_end() so that when the bot is banned, they can't keep trying to register...
##		  ...and fixed a few other problems. :p
##   2006-05-14 - Version 1.1.11
##      - Minor mistake fixed :p
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

# 
#-----[ OPEN ]------------------------------------------
# 
	
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
# 

$unhtml_specialchars_replace = array('>', '<', '"', '&');

# 
#-----[ AFTER, ADD ]------------------------------------------
#

// Start Website removal mod

// Change "$ban_ip = false;" to "$ban_ip = true;" to ban the of the user if it tries to enter in something in the website or signature sections
$ban_ip = false;

// End Website removal mod

#
#-----[ FIND ]------------------------------------------
# 

		rawurlencode($website);
	}

# 
#-----[ AFTER, ADD ]------------------------------------------
#

// Start Website removal mod
	if ( ($mode == 'register') && ($website != '') )
	{
		if ($ban_ip == true)
		{
			$sql = "INSERT INTO ".BANLIST_TABLE." (`ban_ip`) VALUES ('".$userdata['session_ip']."')";
			if ( !$db->sql_query($sql))
			{
				message_die(GENERAL_ERROR, "Couldn't insert ban_ip info into database", "", __LINE__, __FILE__, $sql);
			}
		}
		session_end($userdata['session_id'], $userdata['user_id']);
		message_die(GENERAL_ERROR, 'Die robot!');
	}
// End Website removal mod

# 
#-----[ OPEN ]------------------------------------------
# 

templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------
#

	<tr> 
	  <td class="row1"><span class="gen">{L_WEBSITE}:</span></td>

# 
#-----[ BEFORE, ADD ]------------------------------------------
# 

	<!-- BEGIN switch_user_logged_in -->

#
#-----[ FIND ]------------------------------------------
#

	</tr>

# 
#-----[ AFTER, ADD ]------------------------------------------
# 

	<!-- END switch_user_logged_in -->

#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
# 

If you want to ban the bot's IP address when they are denied, 
  make sure you change the $ban_ip = false; to $ban_ip = true;
  If you don't know how to do that, 
  open:
  includes/usercp_register.php

  find:
  $ban_ip = false;

  replace with:
  $ban_ip = true;


  This is not necessary, as the bot won't be allowed to register anyways,
  but if you want it to auto-ban that IP, go ahead...

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

camaro92
Registered User
Posts: 450
Joined: Sat Oct 05, 2002 10:55 pm
Contact:

Post by camaro92 » Tue May 23, 2006 12:52 am

That doesn't make any sense to me.. if the fields are HIDDEN.. then HOW can anything enter anything into fields that don't exist?

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Tue May 23, 2006 1:34 am

camaro92 wrote: That doesn't make any sense to me.. if the fields are HIDDEN.. then HOW can anything enter anything into fields that don't exist?


They do exist...they are just hidden to normal people...when a bot does it, they don't manually fill in the slots...they just submit the form and set POST variables(and if they do that, it doesn't matter if you can't see it or not...since its still there in the .php file(which is why we add the stuff in usercp_register.php))

So when someone does fill in the hidden values(which only a bot would do), they are not allowed to register... ;)

camaro92
Registered User
Posts: 450
Joined: Sat Oct 05, 2002 10:55 pm
Contact:

Post by camaro92 » Tue May 23, 2006 1:38 am

EXreaction wrote:
camaro92 wrote:That doesn't make any sense to me.. if the fields are HIDDEN.. then HOW can anything enter anything into fields that don't exist?


They do exist...they are just hidden to normal people...when a bot does it, they don't manually fill in the slots...they just submit the form and set POST variables(and if they do that, it doesn't matter if you can't see it or not...since its still there in the .php file(which is why we add the stuff in usercp_register.php))

So when someone does fill in the hidden values(which only a bot would do), they are not allowed to register... ;)


AH.. that makes sense now.. I just installed the mod that changes the variables for the "Change "agreed" and "coppa" variables to confuse bots" MOD.

User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Post by EXreaction » Tue May 23, 2006 1:55 am

camaro92 wrote: AH.. that makes sense now.. I just installed the mod that changes the variables for the "Change "agreed" and "coppa" variables to confuse bots" MOD.


Ya, I heard that the ConfusaBOT lite mod works pretty well...I never tried it myself though.

camaro92
Registered User
Posts: 450
Joined: Sat Oct 05, 2002 10:55 pm
Contact:

Post by camaro92 » Tue May 23, 2006 1:58 am

EXreaction wrote:
camaro92 wrote:AH.. that makes sense now.. I just installed the mod that changes the variables for the "Change "agreed" and "coppa" variables to confuse bots" MOD.


Ya, I heard that the ConfusaBOT lite mod works pretty well...I never tried it myself though.


Someone just now told me it did nothing :)

Post Reply

Return to “[2.0.x] MOD Database Releases”