Any suggestions for a simple way in #Django to blackhole all these requests for Wordpress things which will never work?
=> More informations about this toot | More toots from adamghill@indieweb.social
I’m using Coolify with uses Caddy under the hood (I think) so maybe I can exclude some paths in a config or something. 🤔 #Django
=> More informations about this toot | More toots from adamghill@indieweb.social
@adamghill my first thought was a small middleware that checks the request path and blackholes any requests to php files, but going up a level from an application solution to the proxy itself is probably better?
=> More informations about this toot | More toots from josh@joshthomas.dev
@josh @adamghill If you use Cloudflare (free version) and I would assume Fastly, they can do it for you.
=> More informations about this toot | More toots from webology@mastodon.social
@webology @josh Good call -- gonna look at my Cloudflare setup.
=> More informations about this toot | More toots from adamghill@indieweb.social
@adamghill @webology beyond just the page rules, it takes a trivial amount of JS in a Cloudflare worker to do this too https://developers.cloudflare.com/workers/examples/redirect/
=> More informations about this toot | More toots from josh@joshthomas.dev
@webology @josh omg Cloudflare WAF where have you been all my life 😍
=> View attached media | View attached media
=> More informations about this toot | More toots from adamghill@indieweb.social
@adamghill @josh It's on my list to automate this since they have an API but I haven't gotten there yet.
I'm mentioning this because that means Josh will figure it out before I have time even to look. 🤣
=> More informations about this toot | More toots from webology@mastodon.social
@webology @josh I wonder if a management command might be useful
=> More informations about this toot | More toots from adamghill@indieweb.social
@webology @adamghill Naw, my hyper focus is oscillating between component templates and language servers, I don’t think there’s room for anything more right now 😅
=> More informations about this toot | More toots from josh@joshthomas.dev
@josh @webology focus?! What is this “focus” that you speak of
=> More informations about this toot | More toots from adamghill@indieweb.social This content has been proxied by September (3851b).Proxy Information
text/gemini