You can read my blog posts using curl
mahdi.blog
You can read my blog posts using curl
1–10 of 73 posts
Re: You can read my blog posts using curl
#2Re: You can read my blog posts using curl
#3lynx -dump
elinks -dump
(not the same thing of course, but it doesn't require anything from the server other than reasonable HTML)
Re: You can read my blog posts using curl
#4Re: You can read my blog posts using curl
#5I'm guessing the blog is made by a static site generator, so the above is harder than it seems. I suppose one could add a reverse proxy that redirects to /raw/$PAGE when it sees "curl".
Re: You can read my blog posts using curl
#6If the site is not a static one, you could check the request's User Agent server-side, and return the raw version directly (or redirect to /foo/raw) if the UA contains 'curl' or 'wget'.
If the site is static and you are able & willing to change your vhost config, you could detect the UA too, and redirect to /foo/raw.
Just a few ideas. This is a fun little project you've got here. Well done.
Re: You can read my blog posts using curl
#7Re: You can read my blog posts using curl
#8 curl https://fuse.pl/beton/10print.html # with code highlighting
curl https://fuse.pl/beton/cegla.html # just proseRe: You can read my blog posts using curl
#9Why not use user agent detection (and maybe have a header/footer that says "This page has been formatted for readability based on your User Agent: curl"). I'm guessing the blog is made by a static site generator, so the above is harder than it seems. I suppose one could add a reverse proxy that redirects to /raw/$PAGE when it sees "curl".