Als wir auf www.bardor.de die Forensoftware phpBB2 installiert hatten, dauerte es keinen Tag, da hatten wir bereits 10 User im Forum. Diese User hatten keine Beiträge geschrieben oder sinnvolle Daten im Profil hinterlegt. Es waren dort lediglich Verweise auf Porno Seiten.

Pro Tag kamen ca. 10 weitere hinzu - Trotz Captcha Bildern!

Wirkungsvoll fernhalten konnten wir diese Register - Bots erst durch die Implementation des nachfolgend beschriebenen Mods. Dadurch wird ein Registrierungslink durch einen Hash ergänzt, den diese Bots irgendwie nicht packen.

##############################################################
## MOD Title: Unique Registration Hash
## MOD Author: pentapenguin < n/a > (Jeremy Conley) http://www.pentapenguin.com
## MOD Description: This MOD changes the "agreed=true" part of the registration
## form to a unique identifier to help stop spam bots from registering.
##
## MOD Version: 0.1.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 1
## includes/usercp_register.php
##
## Included Files: N/A
## 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:
##
## Support for this MOD may be found at http://www.pentapenguin.com
## This MOD is EasyMOD friendly! (http://area51.phpbb.com/phpBB/viewforum.php?f=17)
##
##############################################################
## MOD History:
##
## 2006-08-19 - Version 0.1.0
## - Initial release
##
##############################################################
## 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 ]------------------------------------------
#

// Begin Unique Registration Hash MOD by pentapenguin (http://www.pentapenguin.com)
\$registration_hash = md5(\$userdata['session_ip'] . \$userdata['session_id']);
// End Unique Registration Hash MOD by pentapenguin

#
#-----[ FIND ]------------------------------------------
#
global \$userdata, \$template, \$lang

#
#-----[ IN-LINE FIND ]------------------------------------------
#
\$phpEx

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, \$registration_hash

#
#-----[ FIND ]------------------------------------------
#
"U_AGREE_OVER13" => append_sid("profile.\$phpEx

#
#-----[ IN-LINE FIND ]------------------------------------------
#
agreed=true

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
agreed=\$registration_hash

#
#-----[ FIND ]------------------------------------------
#
"U_AGREE_UNDER13" => append_sid("profile.\$phpEx

#
#-----[ IN-LINE FIND ]------------------------------------------
#
agreed=true

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
agreed=\$registration_hash

#
#-----[ FIND ]------------------------------------------
#
if ( \$mode == 'register' && !isset(\$HTTP_POST_VARS['agreed']) && !isset(\$HTTP_GET_VARS['agreed']) )

#
#-----[ IN-LINE FIND ]------------------------------------------
#
!isset(\$HTTP_POST_VARS['agreed']) && !isset(\$HTTP_GET_VARS['agreed'])

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
\$HTTP_POST_VARS['agreed'] != \$registration_hash && \$HTTP_GET_VARS['agreed'] != \$registration_hash

#
#-----[ FIND ]------------------------------------------
#
\$s_hidden_fields = '<input type="hidden"

#
#-----[ IN-LINE FIND ]------------------------------------------
#
name="agreed" value="true"

#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
name="agreed" value="' . \$registration_hash . '"

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

Teilen per: TwitterEmail


Comments

comments powered by Disqus