Help

Started on the old forum in August 2010 · view the original in the archive · old links redirect here

13 replies · 953 views · started 16 years ago · 1 min read

7 participants
kenrickx Newbie · 4 posts #1

how do i stop them from registering 3thousand names in seconds?they flooding the forum someone help me and when the staff create a club they able to login with that staff name someone help me stop all this

thunderwap Developer · 169 posts #2

how they able to login with staff name?

only way is they knows ur staff passwords or u did not put logs text safe with password or somebody is stealing ur sessions.

WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

kenrickx Newbie · 4 posts #3

how would they steal session if i stop all php file to work in avatar?

i0nutzxp Developer · 150 posts #4

put that in register.php ...

        $actime = mysql_fetch_array(mysql_query("SELECT regdate FROM lib3rtymrc_users WHERE browserm='".$ubr."' ORDER BY regdate DESC LIMIT 1"));
  $timeout = $actime[0] + (3*60);
  if(time()<$timeout)
  {
        $tm = time();
        $ramas = $timeout - $tm;
        echo "<p align=\"center\">";
                        echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><small>Un user cu un browser similar cu al dumneavoastra tocmai s-a inregistrat pe site<br/>Ne pare rau dar va ve-ti putea creea un cont nou peste <b>$ramas secunde</b></small><br/>";
            echo "</p>";
                }else{

# ANTI FLOOD BROWSER #2
$brwsu = explode("$_SERVER",$HTTP_USER_AGENT);
$ubr = $brwsu[0];
$actime = mysql_fetch_array(mysql_query("SELECT regdate FROM lib3rtymrc_users WHERE browserm='".$ubr."' ORDER BY regdate DESC LIMIT 1"));
$timeout = $actime[0] + (3*60);
                if(time()<$timeout)
                {
                        $tm = time();
                        $ramas = $timeout - $tm;
                        echo "<p align=\"center\">";
                        echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><small>Un user cu un browser similar cu al dumneavoastra tocmai s-a inregistrat pe site<br/>Va puteti creea un cont nou peste <b>$ramas secunde</b></small><br/>";
            echo "</p>";
                }else{

# ANTIFLOOD IP
   $uip = getip();
   $actime = mysql_fetch_array(mysql_query("SELECT regdate FROM lib3rtymrc_users WHERE ipadd='".$uip."' ORDER BY regdate DESC LIMIT 1"));
   $timeout = $actime[0] + (10*60);
         if(time()<$timeout)
          {
   $tm = time();
   $ramas = $timeout - $tm;
   echo "<p align=\"center\">";
   echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><small>Un user cu un IP similar cu al dumneavoastra tocmai s-a inregistrat pe site<br/>Reveniti peste <b>$ramas secunde</b></small><br/>";
   echo "</p>";
   }else{

//register forms ...

}

it works nice ... its from a romanian lava edit:P

<?php unlink('World/Europe/Romania.country'); ?>
kenrickx Newbie · 4 posts #5

hope it work gonna try it now

thunderwap Developer · 169 posts #6

kenrickx wrote: how would they steal session if i stop all php file to work in avatar?

to stop session hack is not only to stop php file in avatar.

WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

kenrickx Newbie · 4 posts #7

it error my register.php

Parse error: syntax error, unexpected $end in /home/yeah/public_html/blaablaabla.com/register.php on line 180

thats the error i get am using wapdesire edit and which other way to stop session hacking?

i0nutzxp Developer · 150 posts #8

For session hack u must use ur own images ( dont steal ) , for download vault files + gallery files make a file down.php with the code :

<?PHP
$fid = (int)$_GET['file_id'];
 $select = mysql_fetch_assoc(mysql_query("SELECT url FROM table WHERE id='".$fid."'"));
  header("Location: {$select['url']}");
?>

edit urserlf ...

//////// kenrickx one of : { } ( ) is in + or in - ....simple to repair

<?php unlink('World/Europe/Romania.country'); ?>
something else Fellow · 2,296 posts #9

LEARN PHP!!!!!!!!!!!!!!!!!!!!!!!!

You have been given the answer to the problem:

i0nutzxp wrote: one of : { } ( ) is in + or in - ....simple to repair

you have got the line number:

kenrickx wrote: Parse error: syntax error, unexpected $end in /home/yeah/public_html/blaablaabla.com/register.php on line 180

Stop being lazy and work it out yourself its not hard!

Added after 9 minutes:

and if your really stuck and cant fix problems like this then open your php.ini file and set:

 short_open_tag = On

that will fix most Parse error: syntax error, unexpected $end problems

metulj Super moderator Principal · 1,726 posts #10

something else wrote: .....

 short_open_tag = On

that will fix most Parse error: syntax error, unexpected $end problems

i dont think that

Short_open_tag = On

will solve much of errors...

it'll just allowe you to use

<?
.......
?>

instead more correct

<?php
.......
?>

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

something else Fellow · 2,296 posts #11

metulj wrote: i dont think that

Short_open_tag = On

will solve much of errors...

it'll just allowe you to use

<?
.......
?>

instead more correct

<?php
.......
?>

Im think It also allows you to have open statements which are not closed properly eg:

if($something){
print 'yes';
else{
print 'no';
}

well i have read it works and seen many people saying it works but i have never tested it myself 🙂

Added after 3 minutes:

You can read many pages here saying it works: Parse error: syntax error, unexpected $end Short_open_tag = On - Google Search

metulj Super moderator Principal · 1,726 posts #12

something else wrote: Im think It also allows you to have open statements which are not closed properly eg:

if($something){
print 'yes';
else{
print 'no';
}

well i have read it works and seen many people saying it works but i have never tested it myself 🙂 Added after 3 minutes: You can read many pages here saying it works: Parse error: syntax error, unexpected $end Short_open_tag = On - Google Search

thats all true... but just

<?...

is basicly open tag for ASP... and many servers doesnt support it by default anymore... so it's kind a bad practice to use it i guess... also it may happen that document started with

<?...

will be parsed as XML document..

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

CreativityKills Lead · 833 posts #14

Whatever! Yal saying junk. Help the kid, kids. Yo kenrick bin a minute. Its catchphrase, i know u hate me. Anyway just use a captcha library in ur registration. That simple. And for the petty sid theft...stick to php sessions. Ive noticed just a few here knw how to grab that or run csrf requests (and thats sad).

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