How do i restrict some specific paths to specific IP's

1. Caddy version (2.4.0):

2. How i want to Restrict

I have a web url path similar to /admin /staff and would love to restrict those parts of a site to specific IP’s. I have read about http.ipfilter and rewrite but how do i impliment this:

This link leads to blank page

The ipfilter plugin was for Caddy v1, which is now EOL.

In Caddy v2, you can use the remote_ip matcher to match requests by IP and handle them how you want.

1 Like

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