Mod per Evitare Registrazioni di Bot in Phpbb2
-
Ragazzi Installate questa Mod, parlo per gli utenti che vedono registrarsi nel proprio forum, nik strani con link riferenti a siti porno o strani.
Questa mod utilizza una variazione in hash che blocca queste registrazioni.

############################################################## ## 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 -
Ciao master1986,
grazie per questa mod
credo che sarà utilissima per molti 
-
-
cionfs
Ciao master1986,
grazie per questa mod
credo che sarà utilissima per molti 
è un piacere

-
-
-
gongo
Datosi che sono alle primissime armi con i forum, vorrei sapere dove la installo questa mod.
Grazie- Apri il ftp sulla cartella del tuo forum
- esempio:
[open]
includes/usercp_register.php
devi aprire questo file
[FIND]
$unhtml_specialchars_replace = array('>', '<', '"', '&');l'istruzione ti dice di TROVARE QUESTA RIGA, usa word pad con la funzione "trova"
successivamente ti chiede
[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 pentapenguinuna volta trovata la riga vai a capo e incolli questo
spezzone di codice sottoil risultato sarà questo
$unhtml_specialchars_replace = array('>', '<', '"', '&');
// 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 -
stassa cosa per tutti i file che ti chiede
è una mod semplice non complessa quindi sarà facile
Nota: questa mod è per phpbb2 e non per il 3

-
Buono! La inserisco nel topic in rilievo "Le Mod + usate".:-D
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi