Giter VIP home page Giter VIP logo

Comments (12)

hrfee avatar hrfee commented on August 20, 2024

Ah, i forgot about the other routes. / is invites tab, /accounts is accounts tab, /settings is settings tab. Add these:

    <Location "/accounts">
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location "/accounts/accounts">
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location "/accounts/settings">
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location "/accounts/">
        Require all granted
    </Location>
    <Location "/accounts/invite">
        Require all granted
    </Location>

from jfa-go.

mezzovide avatar mezzovide commented on August 20, 2024

not fixed. still return admin page

from jfa-go.

hrfee avatar hrfee commented on August 20, 2024

sorry, they have to go after /accounts/.

    <Location "/accounts">
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location "/accounts/">
        Require all granted
    </Location>
    <Location "/accounts/accounts">
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location "/accounts/settings">
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location "/accounts/invite">
        Require all granted
    </Location>

from jfa-go.

mezzovide avatar mezzovide commented on August 20, 2024

ah yes, i also forgot the ordering. problem is, /accounts/ also return admin page lol

from jfa-go.

hrfee avatar hrfee commented on August 20, 2024

order again, lol.

    <Location "/accounts/">
        Require all granted
    </Location>    
    <Location "/accounts">
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location "/accounts/accounts">
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location "/accounts/settings">
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location "/accounts/invite">
        Require all granted
    </Location>

from jfa-go.

mezzovide avatar mezzovide commented on August 20, 2024

lang/form?
favicon?

from jfa-go.

hrfee avatar hrfee commented on August 20, 2024

ah, quite a few things don't load. I'll look into this more.

from jfa-go.

mezzovide avatar mezzovide commented on August 20, 2024

yea this is getting ridiculous lol. there must be better solution to this madness.

from jfa-go.

hrfee avatar hrfee commented on August 20, 2024

Yeah ik, I think the solution would be a regex that allows /accounts/<any character> but not /accounts/. I'm eating now but I'll look into it after.

from jfa-go.

mezzovide avatar mezzovide commented on August 20, 2024

Take ur time its early morning here. Im gonna hit the bed. Thanks tho for keeping up with me :)

from jfa-go.

hrfee avatar hrfee commented on August 20, 2024

Ok, I think i've got it:

    <Location /accounts>
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location /accounts/>
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <LocationMatch "/accounts/.+">
        Require all granted
    </LocationMatch>
    <Location /accounts/settings>
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location /accounts/accounts>
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
    </Location>
    <Location /accounts/invite>
        Require all granted
    </Location>

from jfa-go.

mezzovide avatar mezzovide commented on August 20, 2024

looks good after running it for some time, i think we can close this.

from jfa-go.

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.