Browser

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

    Browser

    how can I forbid a browser from registering ? i have a stupid mother &%%#$$# who is bugging me with annoying nicks....I want to deny his browser from registering or even entering my lavalair chat...how can i do that ?

    #2
    how can I forbid a browser from registering ? i have a stupid mother &%%#$$# who is bugging me with annoying nicks....I want to deny his browser from registering or even entering my lavalair chat...how can i do that ?[/b]

    4 start maybe IP ban??? lol
    sigpiceeeeerrr....

    Comment


      #3
      yeh i agree with you alesh ip ban is the best way as he/she can always jus kum in again.


      Code:
      <Limit GET HEAD POST>
      order allow,deny
      deny from 193.200
      deny from anonymouse.org
      allow from all
      </LIMIT>
      here i&#39;ve baned the ip range of anonymouse and the website url
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #4
        /*CREATE TABLE `browsers` (
        `id` int(11) NOT NULL auto_increment,
        `agent` varchar(220) default NULL,
        PRIMARY KEY (`id`),
        UNIQUE KEY `agent` (`agent`)
        ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
        */


        <?php
        $link = mysql_connect("localhost", "root", "");
        if(!$link)
        { echo "Nu ma pot conecta la serverul SQL" .mysql_error();
        }
        $_SERVER["HTTP_USER_AGENT"];
        $browser = $_SERVER[&#39;HTTP_USER_AGENT&#39;];

        $select_db = mysql_select_db(&#39;bann&#39;, $link);

        if(!$select_db)
        {
        echo "nu ma pot conecta la baza de date" .mysql_error();
        }

        $insert = "INSERT INTO browsers
        (agent)
        VALUES (&#39;$browser&#39;)";
        @mysql_query($insert);
        $id = mysql_insert_id();
        $id_for_delete = $id - 1;
        if($id%10 == 0)
        {
        $query = " DELETE FROM browsers WHERE id < &#39;".$id_for_delete."&#39; ";
        @mysql_query($query);
        // echo mysql_error();
        }






        $select_accept = " SELECT * FROM `browsers` WHERE `agent` LIKE &#39;%Nokia6030/2.0 (y4.10) Profile/MIDP-2.0 Configuration/CLDC-1.1%&#39; AND id = &#39;".$id."&#39; ";
        $result_accept = mysql_query($select_accept);
        if(mysql_num_rows($result_accept))
        {

        echo &#39;sometext&#39;;

        }
        else
        {
        echo "some code";

        }

        mysql_close();
        ?>


        http://ngeo.ro

        Comment


          #5
          Code:
          //BLOCK this 1 his SAMSUNG-SGH-X700/1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 UP.Browser/6.2.3.3.c.1.101 (GUI) MMP/2.0. 
          if(strstr($_SERVER[&#39;HTTP_USER_AGENT&#39;], "this 1 his SAMSUNG-SGH-X700/1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 UP.Browser/6.2.3.3.c.1.101 (GUI) MMP/2.0"))
          {
              die("Following recent high abuse of the system, your access has been blocked.");
          }
          Code:
           $sqlthing = mysql_query("SELECT * FROM phdetails WHERE banned=&#39;1&#39;");
             $browser=(mysql_result($sqlthing,0,"browser"));
             $ip=(mysql_result($sqlthing,0,"ip"));
             $host=(mysql_result($sqlthing,0,"host"));
             $mimetypes=(mysql_result($sqlthing,0,"mimetypes"));
             $language=(mysql_result($sqlthing,0,"language"));
             $charset=(mysql_result($sqlthing,0,"charset"));
          
          if(($browser=="$HTTP_USER_AGENT") && ($ip=="$REMOTE_ADDR") && ($host=="$hostsnames") && ($mimetypes=="$HTTP_ACCEPT") && ($language=="$HTTP_ACCEPT_LANGUAGE") && ($charset=="$HTTP_ACCEPT_CHARSET"))
          {
          echo "Your Device is banned";
          }
          else
          {
          hope this helps
          Want something coded email me at sales@webnwaphost.com for a prices.




          Comment


            #6
            /*CREATE TABLE `browsers` (
            `id` int(11) NOT NULL auto_increment,
            `agent` varchar(220) default NULL,
            PRIMARY KEY (`id`),
            UNIQUE KEY `agent` (`agent`)
            ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
            */
            <?php
            $link = mysql_connect("localhost", "root", "");
            if(!$link)
            { echo "Nu ma pot conecta la serverul SQL" .mysql_error();
            }
            $_SERVER["HTTP_USER_AGENT"];
            $browser = $_SERVER[&#39;HTTP_USER_AGENT&#39;];

            $select_db = mysql_select_db(&#39;bann&#39;, $link);

            if(!$select_db)
            {
            echo "nu ma pot conecta la baza de date" .mysql_error();
            }

            $insert = "INSERT INTO browsers
            (agent)
            VALUES (&#39;$browser&#39;)";
            @mysql_query($insert);
            $id = mysql_insert_id();
            $id_for_delete = $id - 1;
            if($id%10 == 0)
            {
            $query = " DELETE FROM browsers WHERE id < &#39;".$id_for_delete."&#39; ";
            @mysql_query($query);
            // echo mysql_error();
            }






            $select_accept = " SELECT * FROM `browsers` WHERE `agent` LIKE &#39;%Nokia6030/2.0 (y4.10) Profile/MIDP-2.0 Configuration/CLDC-1.1%&#39; AND id = &#39;".$id."&#39; ";
            $result_accept = mysql_query($select_accept);
            if(mysql_num_rows($result_accept))
            {

            echo &#39;sometext&#39;;

            }
            else
            {
            echo "some code";

            }

            mysql_close();
            ?>
            [/b]
            I think this one work&#39;s i&#39;ve created x.php with the php code posted by blackhowk and i&#39;ve added a link in index.php a link to x.php...when i access it it sais some code...what do i do next ? how do I stop a browser from accessing my chat ?

            Comment


              #7
              make this file as bann.php

              1. include this page bann.php into chat.php or else (or put the code first on page)
              2. edit the bann.php or edit the code in browser zone with your nasty...browser
              3.

              edit:
              {

              echo &#39;sometext&#39;; // or erase.
              die ();

              }
              else
              {
              echo "some code"; // you dont have access here.
              die ();

              }
              http://ngeo.ro

              Comment


                #8
                For lavalair script use edit index.php ,login.php and register.php like this
                Code:
                 [b]include ("x.php");[/b]
                include("config.php");
                include ("core.php");

                Comment

                Working...
                X