Webpage redirect on a home router?

in Off-Topic
Typically, in a public wi-fi accessible establishment, you connect without having to enter a key to access the network's wireless internet. Then, no matter what website you try to access, it redirects you to their page first, informing you of the rules and guidelines of using their wireless internet network, and you must either check a box indicating you have read and understood the rules, or, sign in using a username and password granted to you already (like at a hotel).
Is this possible to do on a home router (such as a Linksys or Netgear)? If so, how? Is this done on the router itself or a server somewhere? Something else?
Is this possible to do on a home router (such as a Linksys or Netgear)? If so, how? Is this done on the router itself or a server somewhere? Something else?
Comments
Almost forgot, Wifidog is another one you may want to look at, it is just a Captive Portal suite, and nothing else. While pfSense has a Captive Portal feature, it is mainly a firewall, and has a lot of other features. If all you want is a Captive Portal and nothing else, something like Wifidog, which is free as well, may be better suited.
Free Microsoft Training: Microsoft Learn
Free PowerShell Resources: Top PowerShell Blogs
Free DevOps/Azure Resources: Visual Studio Dev Essentials
Let it never be said that I didn't do the very least I could do.