Closed MarkDBlackwell closed 6 years ago
Now, I'm using https://example.org
in the example config files of all my themes, namely:
During the last days I began to open issues to inform theme owners about this (potential) form of abuse. At the same time I updated your list @MarkDBlackwell and removed themes that switched to a save base url.
Some of the urls will not work even if somebody would like to abuse them:
http://your-site-here and http://your_website_url aren't valid URLs
Regarding DNS names which include hyphens or underscores ("-" or "_"):
Regarding DNS names which lack top-level domains (".com", etc.): various key combinations reportedly cause certain browsers (IE and Safari) sometimes to append ".com".
Some web browsers (if appropriately configured) sometimes append ".com" automatically to DNS names. For example, in:
Because of the vagueness of our understanding of the above software, IMO we should err on the side of safety.
tl;dr Some users' or organizations' browsers might automatically append ".com" to DNS names which lack top-level domains.
After appending ".com" (in all the browsers I checked), http://your-site-here currently rewrites to http://www.your-site-here.com/responsive/wordpress/.
Therefore, IMO we should discourage http://your-site-here and http://your_website_url strongly, as well.
Ref.: Underscores in DNS – SourceForge DNS domain name syntax examples – Stack Overflow ".com" auto-add – Google (web search)
Since this was never closed, wouldn't it make sense to just make this a requirement in the README.md like screenshots?
Also, hugo-future-imperfect still uses http://hugo.spf13.com/ as the base url - should we change that then?
Since this was never closed, wouldn't it make sense to just make this a requirement in the README.md like screenshots?
That's a good idea. I'll update the guide in the README accordingly.
Also, hugo-future-imperfect still uses http://hugo.spf13.com as the base url - should we change that then?
Are you just talking about the future-imperfect theme?
Yeah, its just our theme that I know of (maybe it was part if the default config?).
A thorough search of Hugo's theme collection revealed some bad baseurls (from the point of view of security); see Hugo issues here and here.
I assume the best place for us to edit these themes is directly in this repository. Is this assumption correct?
Following are (all of) the bad ones (converted to lower case), along with some good ones:
Good:
Bad: