ipfilter icon indicating copy to clipboard operation
ipfilter copied to clipboard

Use markdown and template actions on blockpages

Open euh2 opened this issue 6 years ago • 3 comments

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.

euh2 avatar Dec 03 '18 20:12 euh2

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.

pyed avatar Dec 03 '18 22:12 pyed

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.

euh2 avatar Dec 03 '18 23:12 euh2

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

pyed avatar Dec 04 '18 06:12 pyed