Just thinking. Bots and spammers may be pretty clever nowadays, so I'm not sure if putting an email inside a url (for badge generation) is good idea too.
Fanatism isn't a bad thing some times. :D
Badge:
Source: https://badgen.net/badge/%20/[email protected]?label&color=07ba96
So, what I'm proposing the following
badgen.net/email/<tld>/<name>/<domain name>
badgen.net/email/com/consulting/tunnckocore
badgen.net/email/co.uk/foobar/mydomain
to be able to generate badge like the above (of course with possibility for label and etc).
The idea of live badge will be just to combine the parts in correct order.
I can create runkit for it, but still. Interesting to hear.
https://liam-badge-nkor46ifd7m6.runkit.sh
Badge:
Source: /https/liam-badge-daknys6gadky.runkit.sh/co.uk/tunnckocore/matu-hiva?label
Badge:
Source: /https/liam-badge-daknys6gadky.runkit.sh/com/ceo/tunnckocore?label&color=pink
Badge:
Source: /https/liam-badge-daknys6gadky.runkit.sh/com/mameto2011/gmail?label&color=green
Badge:
Source: /https/liam-badge-daknys6gadky.runkit.sh/bg/charlike.mike/mail
I'm still not sure if all this worth it :D We can make it even hackier...
If <domain name> is skipped, assume gmail, if tld is skipped assume com.
That's a pretty nice idea!
Prefer this schema /email/:name/:domain
Let's use this as default style:
I agree it's better but thinking that it's still too easy to be recognized/parsed as email. who knows what these bots do...
Hiding email address from spammers is a road without end and it shouldn't be the goal of email badge.
While, maybe this can be a standalone api endpoint for /https, with all kinds of dark magic to hide email address.
Also, we could have a section on badgen.net, showcasing / inspiring these usage of badgen.net, that would be cool!
Yup. Of course it's road without end. But we can do it in that simple way.
Anyway, as you want. I'm using the /https for now. :)
@amio I would much prefer to use a builtin endpoint, and not need to set up my own /https endpoint as well.
@binyamin Do you mean a email endpoint with builtin obscuration from email parsing/recognization?
@amio I meant https://github.com/badgen/badgen.net/issues/293#issuecomment-506623856
@binyamin Nice, let's go for it 馃憤
Most helpful comment
Hiding email address from spammers is a road without end and it shouldn't be the goal of email badge.
While, maybe this can be a standalone api endpoint for
/https, with all kinds of dark magic to hide email address.Also, we could have a section on badgen.net, showcasing / inspiring these usage of badgen.net, that would be cool!