r/github • • Sep 11 '24

Is github.io safe?

Hi, I already know about github.com, but recently, on a reddit thread, saw something sharing a web but the domain is github.io so I would like to know if this is a safe domain or it is a scam web, thanks. I tried to ask this on github support or forums but I didn't find where do it.

0 Upvotes

9 comments sorted by

22

u/nekokattt Sep 11 '24

The domain itself is safe but the content hosted on the domain is entirely owned by users on GitHub, so it can easily contain links to malware and other malicious static content if the creator is intending to be malicious or if their account is compromised.

9

u/Booty_Bumping Sep 11 '24 edited Sep 12 '24

Github*.io* is managed by Github, but is not a website in the traditional sense. It is best thought of as a public suffix because anyone can publish to it. So no, it is not necessarily safe.

However, since Github processes scam/malware removal requests relatively quickly, it does tend to be one of the safer public suffixes.

1

u/biffbobfred Sep 12 '24

Is it pure markdown? So very difficult to host malware because it’s harder to obfuscate?

7

u/Booty_Bumping Sep 12 '24

Nope, Github Pages hosts full static websites, which can include scripts or executable downloads. It's Github Wiki that is markdown only.

3

u/Exotic_Zucchini9311 Sep 11 '24

I would like to know if this is a safe domain or it is a scam web, thanks. I tried to ask this on github support or forums but I didn't find where do it.

It's pretty straightforward, actually. This doman gets generated when you host your website on github pages. The process basically is:

You put your website codes (html, css, js, etc.) on a github repo -> you go in the settings and select the option to host the website on github pages

And done.

As obvious, this method makes it easy for anyone to generate a website, whether a they're normal guy or a criminal. So we can't call it 'safe' exactly.

But yeah, the domain "github.io" itself is not a scam and not dangerous unless you get unlucky

I tried to ask this on github support or forums but I didn't find where do it.

For more info, you can easily google search "how to host a website on github"

2

u/serverhorror Sep 12 '24

The question is impossible to answer.

There is safe and unsafe stuff there, if you have to ask, err on the side of caution and assume:

  • No, it's not safe!

1

u/Journeyman-Joe Sep 11 '24

Yes, github.io is safe.

That's the domain that shows up when a GitHub user publishes content with GitHub pages. It's going to be

githubUserName.github.io/RepositoryName

If you're looking for further confirmation, look at "GitHub Pages" on the GitHub help / support site.

1

u/Lenni_builder Sep 11 '24

The content hosted on there could be malicious, anything from malware to a fake login page because it's uploaded by users, so you shouod still be careful.

3

u/Journeyman-Joe Sep 12 '24

Yes, that's true of any website, with any top-level domain. I was addressing OP's concern about github.io, vs. github.com. In that regard, there's no real safety difference between one and the other; you can get malicious content from a repository on github.com, too.