PhpBB la fin des inscriptions sauvages ?

, par  MORA , popularité : 40%

Ceci s’adresse aux webmasters accomplis ou en herbe mais opérationnels !

Si vous utilisez un forum phpbb, vous avez dû constater que vous êtes constamment et plusieurs dizaines de fois par jour, inondés d’inscriptions sauvages !! Celles ci vantent les mérites du Viagra jusqu’à vous proposer toutes sortes de photos d’intérêts divers !!!

Cela fait des années que tout le monde cherche le remède !!

En effet ces inscriptions sont faites par des programmes qui simulent une inscription humaine !

Une vraie galère !!



Tout cela est peut être fini !!!

Plusieurs systèmes assez ingénieux avaient été trouvés, mais tôt ou tard les robots s’adaptaient et pof rebelote !!

La solution la voilà !! Imparable parce que polymorphe !! Une ID fantôme calculée sur les éléments de l’inscription "vérouille" la confirmation !! Donc impossible à un programme de s’inscrire !

##############################################################

## 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 = ’

#

#-----[ IN-LINE FIND ]------------------------------------------

#

name="agreed" value="true"

#

#-----[ IN-LINE REPLACE WITH ]------------------------------------------

#

name="agreed" value="’ . $registration_hash . ’"

#

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

#

If you have CyberAlien’s eXtreme Styles MOD (http://www.phpbb.com/phpBB/viewtopic.php?t=125251), you can copy

the file in contrib/admin/xs_unique_registration_hash.cfg to admin/xs_unique_registration_hash.cfg and you will

be automatically notified if there’s an update available when you use the "check for updates" function.

#

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

#

# EoM

Vive la tranquillité !!!

Navigation

Brèves Toutes les brèves