Ancestors

Written by adamghill on 2025-01-18 at 13:54

Any suggestions for a simple way in #Django to blackhole all these requests for Wordpress things which will never work?

=> View attached media

=> More informations about this toot | More toots from adamghill@indieweb.social

Written by adamghill on 2025-01-18 at 13:57

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

Written by Josh Thomas on 2025-01-18 at 14:40

@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

Written by Jeff Triplett on 2025-01-18 at 15:30

@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

Toot

Written by adamghill on 2025-01-18 at 15:49

@webology @josh Good call -- gonna look at my Cloudflare setup.

=> More informations about this toot | More toots from adamghill@indieweb.social

Descendants

Written by Josh Thomas on 2025-01-18 at 15:54

@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

Written by adamghill on 2025-01-18 at 16:10

@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

Written by Jeff Triplett on 2025-01-18 at 17:17

@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

Written by adamghill on 2025-01-18 at 17:23

@webology @josh I wonder if a management command might be useful

=> More informations about this toot | More toots from adamghill@indieweb.social

Written by Josh Thomas on 2025-01-18 at 18:04

@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

Written by adamghill on 2025-01-18 at 18:20

@josh @webology focus?! What is this “focus” that you speak of

=> More informations about this toot | More toots from adamghill@indieweb.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113850145652934115
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
333.012575 milliseconds
Gemini-to-HTML Time
1.956058 milliseconds

This content has been proxied by September (3851b).