browser and ip not allowed next 5 min after registration

Started on the old forum in June 2009 · view the original in the archive · old links redirect here

4 replies · 528 views · started 17 years ago · 1 min read

3 participants
bijaybd Developer · 178 posts #1

i am try to code a system like if a user register next 5 min with the same browser and ip the user will not able to register again by this way there will be much protection is there any code to do that can somebody help me ?

Anshul Senior · 296 posts #2

select * from table_name where ip=useriip and useragent=useragent and registertime>300

bijaybd Developer · 178 posts #3

if ($query = ("select * from chat_users where ip='".$ipadd."' and soft='".$browser."' and rtime>300;")) $error.='Your are not allowed to register again with in 5 minutes. ';

not working bro 🙁

Vayne Developer · 106 posts #4

try something like this

$query = ("SELET* from chat_users WHERE ip='".$ipadd."', soft='".$browser."', rtime='".$registration_time_row_name."'");
if($query[2]=<300)
{
echo "Your are not allowed to register again with in 5 minutes.<br/>";
}else{
rest of code here
}

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

bijaybd Developer · 178 posts #5

showing : Parse error: syntax error, unexpected '<' this error

also i tried it but failed again :

if $ac=mysql_fetch_array(mysql_query("select * from chat_users where ip='".$ipadd."' and soft='".$browser."' and rtime='".$rtime."'")); if($rtime[0]=<60) { echo "Your are not allowed to register again with in 1 minute. "; }else{

registration rest code }

it also shows error

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close