go-fed / activity

ActivityStreams & ActivityPub in golang, oh my!
BSD 3-Clause "New" or "Revised" License
702 stars 111 forks source link

Use example.org instead of example.dev #145

Closed aschrijver closed 2 years ago

aschrijver commented 3 years ago

In https://github.com/go-fed/activity/blob/c7bbac61b652d31589f6744937369164ca36ea59/astool/forgefed.jsonld#L43 the example uses the URL example.dev.

It is best-practice to use either example.com or example.org as these domains are registered / reserved by IANA for exactly the purpose to serve for examples.

(In this case it will not lead to code being executed that invoke that domain, but users of go-fed might do so. If someone registers example.dev they might not be benign)

aschrijver commented 3 years ago

Another URL I encountered like this in examples is dev.community. This domain is registered by Amazon and redirects to Amazon Developers. I suggest replacing this on with example.com and replacing example.dev with example.org.