Skip to main content

Using the CodeHS.io Domain for HTML Assignments & Sandbox Programs

Learn about the secure CodeHS.io domain for HTML assignments and Sandbox programs — designed to enhance student privacy, restrict public access, and support safe classroom learning without changing your workflow.

Written by Eli Hernandez

The CodeHS domain codehs.io can be used for HTML assignments and Sandbox programs to provide a more secure, private, and controlled environment for students and teachers working with HTML projects.

Enabling this feature does not change teacher workflows and does not affect a student’s ability to develop HTML programs, progress through their coursework, or use the Sandbox as a learning tool.

What is CodeHS.io?

codehs.io is a secure domain where HTML programs are accessible only to the appropriate users. When enabled, all HTML assignment and Sandbox program output (webpages) will be hosted on codehs.io instead of codehs.me.

HTML program output hosted on codehs.io

What Does CodeHS.io Provide?

A More Secure Environment for Student Work

  • Login is required to access any codehs.io site. In other words, HTML programs hosted on codehs.io are never public.

  • Teachers can access all programs authored by their students, but students cannot view codehs.io programs of other students without teacher permission.

  • codehs.io websites from other random CodeHS users are not accessible.

Reduced Exposure to Unrelated Public Content

When your organization enables codehs.io, you gain the option to block codehs.me on your network without affecting students’ ability to complete or submit HTML assignments or use the Sandbox.

Blocking codehs.me prevents students from accessing public programs created by other users, while all coursework continues to function normally through the secure, login-protected codehs.io domain.

Students can publish a program to a public codehs.me URL if allowed by their teacher and school or district. If your organization does not want students to publish work publicly, CodeHS can restrict that capability upon request.

For more details about student program privacy settings on CodeHS, check out Managing Student Access to Public Programs on CodeHS.

Who Can Access a CodeHS.io Program?

Default access to a codehs.io program is restricted to:

  • The student who created the program

  • Their teacher(s)

  • Collaborators on sandbox programs (if collaboration is enabled)

  • CodeHS team members (for support and debugging)

No other CodeHS users are able to view a student’s codehs.io work.

Can Students See Each Other’s Programs?

By default:

  • HTML Assignments: Students can only access their own assignments.

  • Sandbox Programs: Students cannot access other students’ codehs.io sandbox programs unless collaboration is enabled, and they are added as collaborators.

Allowing Students to Share CodeHS.io Programs with Their Classmates

In Section Settings, teachers can turn on a setting to allow students to share their codehs.io programs with other students enrolled in the same class. This setting allows students to view each other's programs without making them public to anyone else outside of their class Section.

For more details about changing student program privacy settings, check out Managing Student Access to Public Programs on CodeHS.

Why Enable CodeHS.io?

Enabling codehs.io allows your organization to:

  • Block public codehs.me sites — Prevent students from accessing unrelated or distracting public programs created by other CodeHS users.

  • Keep HTML program access — Students can continue accessing HTML assignments and Sandbox programs through the secure, login-protected codehs.io domain.

What You Need to Do

To ensure a smooth transition to the codehs.io domain, follow these steps:

1. Whitelist CodeHS.io

Add codehs.io to your network’s whitelist so students and teachers can securely load all HTML assignments and sandbox programs.

  • codehs.xyz is another domain that should be whitelisted. This domain is used by the CodeHS team for websites used in curriculum

2. Test your configuration

Use the CodeHS domain testing tool to ensure all required domains are working correctly on your network: https://codehs.com/test_codehs_domains

This page will show whether each domain is allowed or blocked.

Domain configuration pass example:

Domain configuration pass example

Domain configuration fail example:

Domain configuration fail example:

3. Notify CodeHS

  • Pro Plan users: After whitelisting codehs.io, let your Account Manager know. They will enable the setting for your school or district and confirm that everything is ready to switch over.

  • Free Plan users: After whitelisting codehs.io, your district, school, or IT administrator should reach out to support@codehs.com for further assistance on enabling the setting for your school.

4. Block CodeHS.me (Optional)

If your school has experienced issues with students accessing public content created by others, you may choose to block codehs.me. Once codehs.io is enabled, blocking codehs.me will not impact student or teacher functionality.

For more details about the CodeHS domains required for platform and curriculum access, please visit and read CodeHS Domain Requirements.


Still have questions? Contact our team at support@codehs.com to learn more!

Did this answer your question?