how to blocked username like this?

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

    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..

    #2
    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(); }

    Comment


      #3
      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,

      Comment


        #4
        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);
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          sir, where in index/register.php i put the code, in anywhere?

          Comment


            #6
            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.

            Comment


              #7
              you need too add at code at them pages...
              Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
              Visit: WapMasterz Coming Back Soon!
              _______
              SCRIPTS FOR SALE BY SUBZERO
              Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
              FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
              _______
              Info & Tips
              php.net
              w3schools.com

              Comment


                #8
                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?
                PHP Code:
                /* I don't know everything hehe */ 
                Find me on facebook

                Comment


                  #9
                  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.
                  she is beautifull than php.and i love her more than php.
                  sigpic

                  Comment


                    #10
                    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";

                    PHP Code:
                    /* I don't know everything hehe */ 
                    Find me on facebook

                    Comment


                      #11
                      Right, sorry! Thanks! I'll try tommorow, and i post back if working, ,

                      Comment


                        #12
                        I forgot, also in login page, ,

                        Comment


                          #13
                          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]);

                          Comment


                            #14
                            Thanks bro, if this code not working, i will use zyclone script, , to less bug, theres so many bug in wap.net.ph script?

                            Comment


                              #15
                              Originally posted by arg0s12 View Post
                              Thanks bro, if this code not working, i will use zyclone script, , to less bug, theres so many bug in wap.net.ph script?
                              it will surely work if you know how to use it.. xD

                              I already expirience that error, and made some actions to prevent it..

                              and it works
                              Last edited by huwad; 15.12.09, 05:49.

                              Comment

                              Working...
                              X