pyed / ipfilter

ipfilter is a middleware for Caddy that blocks or allows requests based on the client's IP
https://caddyserver.com/docs/ipfilter
Apache License 2.0
83 stars 19 forks source link

Use markdown and template actions on blockpages #35

Open euh2 opened 5 years ago

euh2 commented 5 years ago

I guess this is kind of a feature request. It would be nice to use markdown on blockpages. This would open up possibilities for more advanced respons-pages useful for users.

pyed commented 5 years ago

doesn't markdown get converted to HTML eventually ? or is there some new fancy things that I'm not aware of, probably it is better to add a redirect directive which takes an URL to redirect any blocked clients to that URL (can be used to send clients to other websites), but then that will be a bit of a hassle because you need to white list any client to requesting that page.

euh2 commented 5 years ago

I will try the redirect directive. Didn't think about that one. Thanks! I simply prefer writing markdown. Formatting the page is much simpler that way. And I want to fill in some dynamic values, like the clients geoip-location etc. And Caddy comes with nice options to fill variables through Template Actions.

pyed commented 5 years ago

The redirect directive is not available. It was just an idea.