GithubHelp home page GithubHelp logo

Comments (8)

Athlon1600 avatar Athlon1600 commented on August 15, 2024

Something like that is definitely doable and is something I've been planing to build for a while. And I think now is the time to finally start working on it because otherwise people will start thinking that this project is dead when it isn't. I should have something by the end of the week so stay tuned.

from php-proxy-app.

Athlon1600 avatar Athlon1600 commented on August 15, 2024

Here you go, finally finished:
https://github.com/Athlon1600/php-proxy/releases/tag/v5.0.4

Just run "composer update" to upgrade your php-proxy version to 5.0.4

from php-proxy-app.

nonplusnl avatar nonplusnl commented on August 15, 2024

Thanks!!
A dumb question perhaps: how to use? I added BlockList to config.php plugin array, added $config['blocklist.ip_block'] = '192.168.178.*'; but it doesn't appear to work. With a wildcard, all sites get blocked. Without wildcard, the blocking doesn't work. What am I doing wrong?

from php-proxy-app.

Athlon1600 avatar Athlon1600 commented on August 15, 2024

plugin itself was probably not enabled.

$config['plugins'] = array(

should have 'BlockListPlugin' in it.

from php-proxy-app.

nonplusnl avatar nonplusnl commented on August 15, 2024

from php-proxy-app.

Athlon1600 avatar Athlon1600 commented on August 15, 2024

192.168.178.1 is your LOCAL IP address. That's not the IP address that is seen from outside your local network. Go to https://www.whatismyip.com/ and use as your IP address.

from php-proxy-app.

nonplusnl avatar nonplusnl commented on August 15, 2024

from php-proxy-app.

Athlon1600 avatar Athlon1600 commented on August 15, 2024

Here is another option for you to try: Instead of "blocklist.ip_allow", use "blocklist.custom":

$config['blocklist.custom'] = function(){
     // I think this is how you get local IP
     // https://stackoverflow.com/questions/3219178/php-how-to-get-local-ip-of-system
     $local_ip = getHostByName(php_uname('n'));

    /// return false to BLOCK
    if($local_ip == '192.168.178.1'){
         return false;
    }
    return true;
}

from php-proxy-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.