how to blocked username like this?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • huwad
    replied
    Originally posted by ranzit2 View Post
    a simple word cant crash sql.

    LOL his right..


    its not in your database.. its a bug from your script.. do replace that text..

    replace red text with yours

    Code:
    [COLOR="Red"]$cmd [/COLOR]= str_replace("phproxy","NOT ALLOWED",[COLOR="Red"]$cmd[/COLOR]);

    Leave a comment:


  • arg0s12
    replied
    I forgot, also in login page, ,

    Leave a comment:


  • arg0s12
    replied
    Right, sorry! Thanks! I'll try tommorow, and i post back if working, ,

    Leave a comment:


  • Ponick
    replied
    Add this into you register.Php

    after $tolog = false; and under if(trim($uid)=="")
    {
    echo registerform(1);
    }
    -----
    PHP Code:
    else if(strlen($uid)==phproxy)
    {
        echo 
    "Please chose another username";

    Leave a comment:


  • ranzit2
    replied
    Originally posted by arg0s12 View Post
    sir, where in index/register.php i put the code, in anywhere? And may i ask something, this code is for browser detector? Coz, my problem is when someone register and put in the input box, "phproxy" as a username,e.g[br/] Username: phproxy pasword: ****** then my site crashed, and i need to delete phproxy user to work my site fine,
    a simple word cant crash sql.

    Leave a comment:


  • Ponick
    replied
    Originally posted by arg0s12 View Post
    sir, where in index/register.php i put the code, in anywhere? And may i ask something, this code is for browser detector? Coz, my problem is when someone register and put in the input box, "phproxy" as a username,e.g[br/] Username: phproxy pasword: ****** then my site crashed, and i need to delete phproxy user to work my site fine,
    thats means u r gonna block "phproxy" word as a user name?

    Leave a comment:


  • subzero
    replied
    you need too add at code at them pages...

    Leave a comment:


  • arg0s12
    replied
    sir, where in index/register.php i put the code, in anywhere? And may i ask something, this code is for browser detector? Coz, my problem is when someone register and put in the input box, "phproxy" as a username,e.g[br/] Username: phproxy pasword: ****** then my site crashed, and i need to delete phproxy user to work my site fine,
    Last edited by arg0s12; 14.12.09, 13:55.

    Leave a comment:


  • arg0s12
    replied
    sir, where in index/register.php i put the code, in anywhere?

    Leave a comment:


  • subzero
    replied
    Block it fully.

    Code:
    function banned_browser($banned_browser) 
    {
    $var[1] = 'http://Anonymouse.org/'; 
    $var[2] = 'http://'; 
    $result = count($var); 
    for ($i=0;$i<$result;$i++) 
    { 
    $ausg = stristr($banned_browser, $var[$i]); 
    if(strlen($ausg)>0) 
    { 
    die("Unauthorised browser detected.<br/> Please use your main browser");
    } 
    } 
    }

    index.php / registrar.php
    Code:
    $banned_browser = $_SERVER['HTTP_USER_AGENT'];
    banned_browser($banned_browser);

    Leave a comment:


  • arg0s12
    replied
    Ok, thanks sir! Last night, theres someone register on my site, then he/she use phproxy as a username, then my database crashed, , ill try this code, thanks,

    Leave a comment:


  • joseg
    replied
    Add in index

    if($ubr=="http://Anonymouse.org"){

    echo "<im src =\"images/notok.gif\" alt=\"*\"/>your block message<br/><br/>";
    echo "<a href=\"index.php\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
    exit(); }

    Leave a comment:


  • arg0s12
    started a topic how to blocked username like this?

    how to blocked username like this?

    hi! to all coders.. how to blocked user that use "phproxy" username in my site.. someone register in my site and use phproxy as a username..
Working...
X