Subdomain take over with github? - github

I have a username on github "as my name is" and also a subdomain like otherusername.github.io and on this Subdomain github error pages there, so I search on google and found that the subdomain is vulnerable to subdomain take over, now the big question is How i claim on it?.
Is i create a repository on my profile with that name "otherusername.github.io? And that's all." If so then what do next?
I want to clear this doubt.

You would need to create a user page
You will need to name this repository with the account name.
You must use the username.github.io naming scheme.
Content from the master branch will be used to build and publish your GitHub Pages site.
That means you need an account with the right username (otherusername), and a repo named otherusername.github.io.

Related

Custom domain on GitHub Pages not working properly

I purchased a domain on NameCheap, and followed a step-by-step guide to configure it with GitHub Pages (I'm pretty new to all of this).
But my GitHub page is not using the custom domain even after configured
The first step was to configure the 4 A records and the CNAME with my username in github:
After that I went to the repository that has my username and set up GitHub Pages, and then added my custom domain:
So far, everything worked perfectly, he re-deployed and added a CNAME file to the master branch
But when I try to use GitHub Pages in other repositories, it still gets the old domain (username.github.io)
What I really wanted was for this project to be in custom.domain/project-name
Any light on what I'm doing wrong?
I didn't find anything different from what I did looking at the official documentation
**Of course I didn't use these names from the images, I just removed the original name.

Github pages URL keeps redirecting to old, deleted custom domain

i host my jekyll blog on github and used to use a custom apex domain for it and that worked just fine.
Yesterday i wanted to discontinue the domain and go back to the standard .github.io adress, so i deleted the DNS Entrys on Namecheap and the custom domain entry in the github repo settings under "Pages" (also made sure the CNAME file is gone, i even deleted the whole repo and set it up from scratch) but still the .github.io Adress redirects to my old custom domain and shows a 404.
Is there a way to solve this?
I can think of trying to assign a new custom domain, but i dont have one right now and just want to use the standard domain for now.

Will changing my GitHub username make websites hosted on GitHub Pages inaccessible?

For example, will abc.github.io/verbose/ (abc being my current username) be changed to xyz.github.io/verbose/ when I change my username to xyz? Will it be automated through GitHub actions?
When you attempt to change your username on GitHub, they explicitly mention that no redirects for GitHub Pages will be set up. Therefore, all links pointing to oldname.github.io/verbose/ will no longer work. It is even possible for someone else to register an account (or organisation) using your old username and then host their website there.
Here is a screenshot of the dialog:

How to share Github Pages via link-only option?

I am trying to share my Github Pages only via link (if possible, keeping my repo private), just like the link-only share option of Google Drive. Specifically, only those with the URL can access the github.io website that I made, while the repo (the github.com website) is preferably not accessible to anyone. May I ask if it's possible, even via third-party tools?
if you share any link from a private repository, you will get an error 404.
Something you can do to test this behavior... is open a chrome tab in incognito mode and paste your link ... there you will see the error.
If you want to share any link in one of your repositories, it must be Public.
If there is another possibility, please let someone tell us how to do it. regards
In general, I don't know if there's a third-party tool to do the work, but it's easy to make it by hand, provides that you're not creating a lot of such pages.
First, is it possible to make a public GitHub Pages based on private repository?
Yes. Just create a private repository, head to Settings >> Options, find the section called "GitHub Pages" and set the source branch. This process is just the same as creating any GitHub pages.
P.S. you SHOULD see the message
Caution: This repository is private but the published site will be public.
This states exactly what you want.
only those with the URL can access the github.io website
Well, just make the URL difficult to guess.
For example, named the repository as a random string "uk5KKR".
However, this will likely mess up the repositories in your profile, soon after you'll be difficult to find the correct repository that you need now.
Instead, you can named name in this way: "githubpage_uk5KKR".
For other people, it's difficult to find this page when they are not provided the URL. And for you, just search "githubpage" in your profile and this repository should appear.
Here's a few notes:
You should adjust the length of the random string according to how secure you need.
It's also possible to make a quarantine area by the path name in a repository. For example, create paths "n2jnHG" and "4xSN2g" in the same repository of GitHub page, then the contents in these two paths could be shared with different people.
Finally, note that if anyone failed to keep the URL secret, the whole page is not secret anymore. It could even become an entry in Google search result.

How to make two different GitHub pages as example.github.io and example.github.io/notifications?

My GitHub username is S1Live. I have a repository called notifications. So, a GitHub page has been made as example.github.io/notifications. I want to make another page as example.github.io or example.github.io/index.html.
Is it possible? If yes, then how to do it?
You can create a repo named username.github.io to host something on a subdomain.
And by creating a repo as notifications under example user, you could make a website as example.github.io/notifications. Reference