To add to jeroenhd's comment, if you're only sending mail from a single server (e.g., you are using a custom domain with Proton Mail, Zoho, etc.), then you probably don't need DMARC reports at all.
To avoid them, you can remove the `rua` or `ruf` tags from your DMARC DNS record.
> Maybe you’re at a restaurant and they need you to open a website for example. You may end up having to bug some people around you for their phone. It can be annoying but I haven’t found this to be too troublesome.
I have been using a profile-based restricted iPhone setup for about 6 months now, and this has been the biggest holdup for me. I've pretty successfully blocked almost everything distracting, but I'm pretty good at finding ways to bypass my restrictions. e.g., I'll find an alternative Reddit client (like Redlib) to bypass my Reddit blocks.
The obvious solution is to use a whitelist instead of a blacklist, but then you completely lose the ability to scan QR codes in the wild.
I'm thinking of building a browser designed for this purpose. Your browsing can begin at certain pre-defined entrypoints, like a news aggregator or a QR code, but you can't manually enter arbitrary URLs or use search engines.
They have menus. Every place I’ve been to (post-Covid) that tries to force the “use-your-phone” thing brought me a menu when I asked and said I didn’t have my phone.
There is no visible plumbing because it kinda is magic! Astro provides adapters for different server runtimes (e.g., Vercel, Cloudflare, Netlify), and it's basically just plug and play. The Cloudflare adapter exposes a bunch of bindings [1] through `Astro.locals.runtime`, which can be accessed during each request. The `cf` binding contains incoming request properties [2], including latitude and longitude.
These bindings (or at least some of them) are also mocked when developing locally, in a non-Cloudflare-Workers environment.
Any ideas on how to do this without the Cloud flare magic, so entirely in the client?
Just based on time will suffice, with latitude approximated to somewhere such as London?
I was just thinking about how to slice up a star map projection, and apply it as an overlay. I don’t do such things often enough to do it quickly, although I can imagine how it could be achieved. I’d imagine someone working in game dev probably could whip up a mechanism for applying coordinates to a star map fairly quickly, but realizing it in pure CSS would probably require exporting all the slices to a folder as SVG squares that are labeled with coordinates, and then using a bit of JS to stitch it all together in the rendered page.
I wrote a simple web-based night sky viewer a while ago [1], which renders the 750 brightest stars from coordinates in a data file (along with the moon). It uses D3.js to do fully client-side SVG-based rendering for interactive use, but it could be simplified to render server side to an SVG file. I think the main complication is that by adding stars, a projection needs to be decided on, and you'd need to consider the aspect ratio of the browser window.
A server is needed to calculate the sun's position from latitude + longitude + time, and then render the gradient. I could use HTML templating in some other language/framework, but I used Astro because that's what I'm familiar with and it's very easy to deploy to Cloudflare Pages.
To do it client-side, you would probably have to call some less-reputable IP geolocation service, or settle for navigator.geolocation which has a permission popup
Depending on how "approximate" is acceptable, I've found that using timezone names can be a good proxy for location. As most users have their timezones set correctly it's more consistent and private than IP or GPS.
I've made a library for my own use cases that does this (https://github.com/mcteamster/virgo), but it's also pretty straightforward to parse the city/state name out of the timezone and look it up somewhere.
To avoid them, you can remove the `rua` or `ruf` tags from your DMARC DNS record.
reply