hey friends need a little help in lavalair , i m faced with problem of lot fake n multiple ids ids in my site so pls can anyone give me the code so tht users with one ip address cant make any more ids , or same browsers cant register another id , hve searched the forums but cant find it
users with same ip address or same browser cant make two ids , lavalair
Collapse
X
-
Originally posted by mirror View Posthmm email validation i had asked earlier in this forum but wasnt able to make it working , searched forum also but didnt find anything for lavalair , pls if anyone hve it , it would b a great help
Comment
-
I tell you how to do it, you implement it.
Create a table with three fields, (id, userid, verification_code). id just for giving primary key, in userid, give the username or id no of the users' table and a hash of a randomly generated string in verification_code. Also add one bool field in user's table say 'verified' and put 0 as default. Now when new user register, email him link to verification page with its verification code in querystring and in verification page, if hash is valid, just update the field of 'verified' in user tables and remove entry from verification table.
You need to update login process also. If user is unverified, don't let it login. This is that simple.
Comment
-
Originally posted by timo View Postuse cookies or session instead of identifying user by ip or browser....
on login:
PHP Code:$month = 30 * 60 * 24 * 60 + time();
setcookie('reg', 1, $month);
PHP Code:if(!isset($_COOKIE['reg'])){
//can reg code here
}else{
echo 'Sorry but you are already registered here <br/>';
}
Last edited by something else; 21.12.11, 18:00.
Comment
-
aaaaaaaa m not able to put ur above words in working code ksg91 bro , m not tht good in coding as whatever i hve learnt is through online tutorials n w3school , m not a professional but just doing it for my hobby but i cant take the harrassment of some really good users at the hand of peoples with fake ids who just spoil the site name , so i would like to implement tht email validation thing suggested .
Added after 2 minutes:
thanks something else bro any help with email validation thingLast edited by mirror; 21.12.11, 18:04.
Comment
-
Here are updated files. Check if working. I was actually going to sleep and saw your post and made this in sleepy state and in hurry in 10 min so no idea about consistency, so please verify the name consistency
I have put enough comments to make if self explaining.
Updated the code in login.php so that if user is not verified, cookies won't be set. Now call the genVerificationCode function when user is registered and pass the unique id of user as argument to this function. And create a verify.php page and call verifyUser() function on that page. Add these two functions in core.php file. Also added one field in ibwf_users table and one more table for verification.
Let me know if you are facing any problem.Attached Files
Comment
-
the amount of modifying to the script to properly and securely stop users creating multiple id's per ip/browser is painstakingly time-consuming
might as well code a script from scratch as i tried and gave up doing it to my new lavalair script i was coding
i just ended up adding a staff validation system with a improved browser and ip detection, that did the job for me
Comment
Comment