Announcement

Collapse
No announcement yet.

Open Proxy Monitoring/DNSBL v2.0.7

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

  • [vBulletin 3.5-3.7] Open Proxy Monitoring/DNSBL v2.0.7

    Licensed users can download this hack here.

    History

    I've had some problems with abuse via open proxies for a time ago, and when we were banning abusers, they always found a new proxy to use and register new accounts with. Since this forum was a large type we could'nt just ban e-mails etc just like that, because this was leading to a very large amount of other banned users too.
    At IRC, in the other hand, we had Open Proxy Monitors, that was banning everything that was blacklisted in some DNSBL-databases. No spammers had a chance to get in there as long they were listed in such database.
    This is a plugin that blocks blacklisted hosts from some different DNSBL's. It uses the global_start-hook, a very simple handler for blocking proxies, and a vBphrase called OPM_Deny.

    April 2006
    The source has been rewritten a bit. The proxychecker is now using a cache that, by default, stores all ip's in a database for 6 hours. It scans some DNSBL's and can be configured to block proxies from bitmasks (defined in the plugin) which makes it a little bit more reliable, because it does'nt block everything it see).
    Configuration is made from the plugin (hopefully there will be a nice admin interface in the future). Exceptions (ip's that can pass through this system even if it is a proxy) are also handled differently now.

    // CHANGES
    //
    // 2007-08-05
    //
    // * Fixed reported bug, based on resolved hosts ending with 127
    // * Changed database-tables to get rid of (hopefully) duplicate keys
    // * Added resolver-function
    // * Added two new block-methods available at the efnet-rbl
    //
    // 2006-06-28 (2.0.6/Another fix)
    //
    // * Proxyinclusions/exclusions didn't work properly
    //
    // 2006-06-28 (2.0.5/Fix only)
    //
    // * Fixed a bug in the $block-array that affected some of the blocking results
    //
    // 2006-06-28 (2.0.4)
    //
    // * opm.tornevall.org has a new entry for anonymizers, added support for this
    // * Default value on "block everything detected" in installer changed to "no"
    //
    // 2006-06-26 (2.0.3)
    //
    // * Created options for admincp (removed plugin-configuration)
    // * Fixed a bit-bug for njabl
    // * Plugin is now a function (rbl_livecheck) for external lookups
    // * Added options for "only block on newuser-registrations"
    //
    // 2006-06-22 (2.0.3 RC)
    //
    // * The monitor is now a function
    // * Added small compatibility with other plugins (with return)
    //
    // 2006-05-13
    //
    // * sorbs zones added (no bitmasking)
    // * opm.blitzed.org removed
    // * time() changed to TIMENOW
    //
    // 2006-04-21
    // ==========
    //
    // * proxyinclusions
    // quickly add own hosts that should be treated as a proxy
    //

    How does it work with 3.6?

    It seem to work fine..


    How to use the compatibility thing

    If you have a plugin that you want to use together with the proxy monitor (only returns a value if a an ip-address is registered as a proxy or not) you can call the function rbl_livecheck like this (example):

    PHP Code:
    global $rblInstalled;
     
    if ($rblInstalled) {
    $remoteIsProxy = rbl_livecheck(1, $_SERVER['REMOTE_ADDR']);
     
    //
    // .. your code here ..
    //
     
    } 
    
    Report bugs if you find them...
    Planned: Admin interface
    Don't forget to install it
    Last edited by Tornevall; 2007-08-05, 22:35.
    -

  • #2
    // CHANGES
    //
    // 2006-04-21
    // ==========
    //
    // * proxyinclusions
    // quickly add own hosts that should be treated as a proxy
    -

    Comment


    • #3
      opm.blitzed.org needs to removed from the default list, as it is no longer in operation.

      http://lists.blitzed.org/pipermail/o...q2/000015.html


      [Source: http://www.vbulletin.org/forum/showp...&postcount=85]
      -

      Comment


      • #4
        // 2006-05-13
        //
        // * sorbs zones added (no bitmasking)
        // * opm.blitzed.org removed
        // * time() changed to TIMENOW
        -

        Comment


        • #5
          // 2006-06-22
          //
          // * The monitor is now a function
          // * Added small compatibility with other plugins (with return)
          //


          How to use the compatibility thing

          If you have a plugin that you want to use together with the proxy monitor (only returns a value if a an ip-address is registered as a proxy or not) you can call the function rbl_livecheck like this (example):

          PHP Code:
          global $rblInstalled;
           
          if ($rblInstalled) {
          $remoteIsProxy = rbl_livecheck(1, $_SERVER['REMOTE_ADDR']);
           
          //
          // .. your code here ..
          //
           
          } 
          
          Last edited by Tornevall; 2006-06-22, 01:21.
          -

          Comment


          • #6
            Release: 2.0.3

            Version 2.0.3


            // 2006-06-26
            //
            // * Created options for admincp (removed plugin-configuration)
            // * Fixed a bit-bug for njabl
            // * Plugin is now a function (rbl_livecheck) for external lookups
            // * Added options for "only block on newuser-registrations"
            Attached Files
            -

            Comment


            • #7
              Minor modifications has been made to the source. The first one is only a default value (look below ). The second change affect opm.tornevall.org - an extra separate entry has been added to the DNS-database for anonymizers (like iphide.com and anonymouse.org, the only two web-based anonymizers I know actually). I think blocking of proxy-by-web-anonymous-services can be useful in some way, somewhere.


              // 2006-06-28
              //
              // * opm.tornevall.org has a new entry for anonymizers, added support for this
              // * Default value on "block everything detected" in installer changed to "no"
              Last edited by Tornevall; 2006-06-28, 06:46.
              -

              Comment


              • #8
                And here's the bugfix...


                // 2006-06-28 (2.0.6/Another fix)
                //
                // * Fixed a bug in the $block-array that affected some of the blocking results
                // * Proxyinclusions/exclusions didn't work properly
                Attached Files
                Last edited by Tornevall; 2006-06-28, 16:48.
                -

                Comment


                • #9
                  Sv: [v3.5/3.6] Open Proxy Monitoring/DNSBL v2.0.6

                  One-line edition:

                  PHP Code:
                  implode('.', explode('.', $ipaddr)) . ".RBLHOST"; 
                  
                  -

                  Comment


                  • #10
                    Re: [v3.5/3.6] Open Proxy Monitoring/DNSBL v2.0.6

                    Updated.

                    // 2007-08-05
                    //
                    // * Fixed reported bug, based on resolved hosts ending with 127
                    // * Changed database-tables to get rid of (hopefully) duplicate keys
                    // * Added resolver-function
                    // * Added two new block-methods available at the efnet-rbl
                    -

                    Comment


                    • #11
                      Re: Open Proxy Monitoring/DNSBL v2.0.7

                      Dont suppose you have a revision of this for a SMF forum would you? Of late Ive sue the extension in the index (before the forum loads) and its had very promising results.

                      Comment


                      • #12
                        Sv: Open Proxy Monitoring/DNSBL v2.0.7

                        You could of course use the independent script for this (link: http://dnsbl.tornevall.org/?do=download, under the "files for anything") but I can look into it (as soon as I can) and see if there's some adaptive possibilities for it.

                        This thread is by the way outdated. There's a newer version added at vbulletin.org...
                        -

                        Comment


                        • #13
                          Re: Open Proxy Monitoring/DNSBL v2.0.7

                          One problem with script at vb.. have to have a lisc. to get to the download. Sorry for reviving the thread btw. Another quick question/suggested addition.

                          Hit counter.. using your db tables whenever a person/thing is redirected to the blacklist page increase counter by one etc. and in the footer of the forum code add "blacklisted blocked since initiated <n>". Then you actually get an idea the thing is doing something. ..No clue how Id go about that.. I debug code not write it.

                          Comment


                          • #14
                            Sv: Open Proxy Monitoring/DNSBL v2.0.7

                            Sorry for extreme delay on this answer, I've been off for a week due to overload of work. But this hitcounter and hitlogging will be added as soon as I can!

                            -

                            Comment


                            • #15
                              Re: Open Proxy Monitoring/DNSBL v2.0.7

                              Seems as if your forums are taking a hit of late... Can you (or would you be wiling to) hag your VB integration script in the open.. the DL link wants lic. verification and what not so it cant be openly accessed. On your suggestion Ive been making use of the 'anything script' files and seems to be doing ok (no real way to determine it till I get it sorted out with a counter). Between you and the SFS module I tweaked so far seem to be clean as a whistle.

                              Comment

                              Sorry, you are not authorized to view this page
                              Working...
                              X