Hi,
Do you know what a small HTML+ JS site is? It shouldn't be bigger than two megabytes.
Here's what I need:
I want to post it somewhere without revealing my identity.
I also want to restrict access so that only the right people can see it.
No annoying ads or unnecessary things, please.
I want the site to stay up for no more than a month.
And if possible, I'd like the code to be displayed in a visually appealing way.
Here are some restrictions:
I can't restrict access on GitHub Pages.
I can't load the entire site on JSFiddle or CodePen.
I also can't use someone else's hosting because I need to post the site anonymously.
Do you have any other suggestions or alternatives?
Bitbucket is a web service that allows you to host and collaborate on projects using the Mercurial and Git version control systems. It serves a similar purpose as GitHub, but with the added benefit of providing free "closed" repositories. In addition, it offers an Issue Tracking system and a Wiki for project dоcumentation. You can find more information about Bitbucket on its Wikipedia page: http://wikipedia.org/wiki/Bitbucket. Feel free to check out their website at https://bitbucket.org/ for further details.
To host the site anonymously, you can set up a folder on your server or hosting with a lengthy name and upload the site there. Optionally, you can password protect the directory to restrict access. In case you don't trust the hoster, you can pack the password into an archive and send it via mail. Since the site is in HTML+JS format, it should work for everyone.
Now, if anonymity is crucial, you can simply upload the site to any file sharing platform using an anonymous proxy. This way, the site will be publicly accessible without revealing your identity.
There is an option for free hosting that allows you to remain anonymous by using an anonymous mail service. However, it's worth mentioning that this particular hosting provider displays advertisements if the number of visits exceeds a certain threshold per day.
On the other hand, there is appfog.com which offers free hosting for a duration of one year without any ads. Additionally, you have the flexibility to display the code in separate files with a listing format for better readability and organization.
It's important to weigh the pros and cons of each option to determine which one best suits your specific requirements and preferences.
I can provide you with a detailed set of suggestions that may fit your requirements:
1. Netlify: Netlify is a popular platform for hosting static websites and web applications. It offers free hosting for small sites, and you can easily set up access restrictions using their built-in Identity feature.
- To use Netlify, you would first need to create a Netlify account (which can be done anonymously). Then, you can simply drag and drop your HTML and JavaScript files into the Netlify deployment interface, and it will automatically build and deploy your site.
- For access control, Netlify's Identity service allows you to set up a registration and login system for your site. You can configure it to only allow specific email addresses or domains to access your content.
- Netlify also provides a clean, minimalist interface for displaying your code, making it visually appealing. Your HTML and JavaScript site should fit well within the 2MB limit.
- The free plan on Netlify allows you to host your site for a month, after which you can either let it expire or upgrade to a paid plan if you need to keep it online longer.
2. GitHub Pages with Password Protection: While you mentioned that you can't restrict access on GitHub Pages, there is a way to add password protection to your repository.
- First, create a new GitHub repository for your project. You can do this anonymously by setting up a new GitHub account without providing any personal information.
- Next, create a simple HTML page with a login form, and then use JavaScript to check the entered password against a pre-defined value. This way, only authorized users will be able to access your site.
- To host your site on GitHub Pages, simply enable the GitHub Pages feature in your repository settings and select the appropriate source (usually the "master" or "main" branch).
- GitHub Pages has a 1GB file size limit, so your 2MB HTML and JS site should be well within the constraints.
- The main downside of this approach is that your code will be publicly visible, but the password protection should help restrict access to only the authorized individuals.
3. Surge.sh: Surge.sh is another free static site hosting service that allows you to host your site anonymously.
- To use Surge.sh, you'll need to install their command-line tool. Then, you can simply run the `surge` command in your project directory to deploy your site.
- Surge.sh offers a custom domain option, which you can use to create a unique URL for your site. Alternatively, you can use the default Surge.sh subdomain, which would look something like `your-project.surge.sh`.
- For access control, Surge.sh allows you to set a password for your site, ensuring that only authorized users can view the content.
- The 2MB limit for your HTML and JavaScript site should be easily manageable on Surge.sh.
4. Codeberg Pages: Codeberg is a privacy-focused alternative to GitHub, and they offer free hosting for static sites through Codeberg Pages.
- To use Codeberg Pages, you'll need to create an anonymous account on the Codeberg platform. This can be done without providing any personal information.
- Once you have an account, you can create a new repository for your project and enable Codeberg Pages in the repository settings.
- Codeberg Pages supports custom domains, so you can create a unique URL for your site. Additionally, you can configure access controls to restrict who can view your content.
- Your 2MB HTML and JavaScript site should fit well within the Codeberg Pages hosting limits.
- The main advantage of Codeberg Pages is the focus on privacy and the ability to keep your project code private.
5. Fleek: Fleek is a decentralized hosting platform that leverages the IPFS (InterPlanetary File System) protocol, allowing you to host your site anonymously and restrict access through various methods.
Regardless of the platform you choose, I recommend using a minimalist and visually appealing code editor or syntax highlighting library to display your HTML and JavaScript code on the site. This will help create a clean and professional look for your project.
Please keep in mind that while these solutions should work for your requirements, it's essential to carefully review the terms of service and privacy policies of any platform you choose to ensure it aligns with your needs and expectations.