I've been wishing I had a tool that could take an arbitrary date/datetime string and spit out the strptime/strftime format string needed to parse it.
Last week I decided to make such a tool and added a couple additional features that I hadn't realized I wanted until I was making it.
The tool to bookmark is at pym.dev/strptime 🔖
Details on how it works here 👇
treyhunner.com/2024/08/find-th…
Quickly find the right datetime format code for your date
I often find myself with a string representing a date and time and the need to create a format string that will parse this string into a datetime …treyhunner.com
Seirdy
in reply to Seirdy • • •Include that in the
httpsection to make the variable globally available to allserverblocks, then use anifdirective in yourserverblock to return403(or444if they’re causing some layer-7 load) if the variable is true.How to block specific user agents on Nginx web server
www.xmodulo.comSeirdy
in reply to Seirdy • • •Seirdy’s Home
Seirdy’s HomeSlatian
in reply to Seirdy • • •Serving suggestion for Caddy:
(Make sure the bot actually is in your robots.txt)
Future expansion simply by adding another
header User-Agent *Other-AI-Bot*directive@Seirdy
Seirdy likes this.
Seirdy
in reply to Slatian • • •