Access to directory for a user with particular IP

@lockadmin not remote_ip 111.11.111.11 {
                path /ghost/
                path /ghost/#/*
}
respond @lockadmin "Access denied" 403

Caddy validate says blocks are not permited with remote_ip. I wonder can I restrict access to the directory without using ipfilter plugin?

You can’t mix and match single-line named matcher syntax with multi-line syntax. Please read the docs.

2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.