Skip to main content

Managing Student Access to Public Programs on CodeHS

Learn more about student program privacy settings on CodeHS and how to moderate student access to public programs and websites.

Written by Mike Javor

To provide schools with a safe and secure environment for learning to code, CodeHS gives teachers, administrators, and IT teams layered controls to manage how students interact with public web content. New privacy settings and moderation tools give you more options to allow or limit your students’ access to public programs and external websites.


Program Privacy Settings

Student HTML Programs Default to Private

HTML programs, including student websites created in CodeHS assignments or the CodeHS Sandbox, are now private by default. Programs that are private are only viewable by:

  • The student who created the program

  • Their teacher(s)

  • Collaborators on Sandbox programs (if collaboration is enabled)

  • CodeHS team members (for support and debugging)

Private programs do not affect a student's ability to write, run, or submit HTML code in the Code Editor — the program output simply can’t be viewed by the public.

Other types of programs, such as Python or Java, default to being shareable by students. Schools or districts that prefer to disable sharing for all student programs can contact their Account Manager or email support@codehs.com to change this setting at the school or district level.

Changing Student HTML Program Privacy Settings

Sharing Student Programs

Student websites stay private unless sharing is:

  • Permitted by the student’s school and district

  • Enabled by the verified teacher of the student’s Section

  • Enabled by the student who owns the program

To enable public HTML program sharing for students in your Section, you must turn on Public Student Websites for your Section:

  1. Open the Sections app

  2. Go to Settings > Basic Settings

  3. Choose your Section from the dropdown menu

  4. Turn on the Public Student Websites setting

When the Public Student Websites setting is enabled, students can share their HTML programs, making them publicly viewable on the internet.

Sharing Private Programs Within Your Section

You can control whether shared student HTML programs are publicly viewable or only viewable by students enrolled in your Section. To allow students to share private HTML programs with other students in your Section:

  1. Open the Sections app

  2. Go to Settings > Basic Settings for that section

  3. Choose your Section from the dropdown menu

  4. Turn off the Public Student Websites setting (if enabled)

  5. Turn on Allow Sharing Programs Within Section

With these settings, students can share their programs with classmates, but shared programs remain inaccessible to anyone outside the Section.

If a shared student program isn’t accessible after enabling sharing settings, contact your Account Manager or support@codehs.com to check if your school or district is set up to permit program sharing.

Sharing Teacher Programs

If you are a verified teacher, you don’t need to enable program sharing settings for your Section to share your programs with your students. To learn how to share a program with your students, check out Sharing CodeHS Programs.

Program sharing is not available for:

  • Logged out users

  • Students who are not enrolled in any Sections

  • Unverified teachers

  • Individual Learners and ESA Homeschool students

Programs belonging to these users always remain private.

Keeping All Student HTML Programs Private

School and district administrators who prefer that all student HTML programs created by their students remain private can request to have public HTML program sharing disabled for their school or district. When public HTML program sharing is disabled at the school or district level, teachers can only choose to enable private HTML program sharing within their Sections — HTML programs cannot be shared publicly.

CodeHS also supports disabling sharing for all program types at the school or district level.

To change the privacy setting for your school or district, contact your Account Manager or email support@codehs.com.

Preventing Student Access to Public CodeHS Programs

By default, student HTML assignments and HTML Sandbox programs are hosted on the CodeHS-owned domain codehs.me. Even when CodeHS student programs are private, publicly shared programs from other CodeHS users remain viewable on codehs.me.

Schools and districts that want to prevent students from accessing all public CodeHS programs can do so with CodeHS's codehs.io domain. Programs hosted on codehs.io require a login to view and are always private — they cannot be shared publicly. By switching your school or district's HTML program hosting domain to codehs.io, you can block access to the codehs.me domain entirely on your network without affecting students' ability to complete assignments, submit work, or use the Sandbox.

To learn how to set up codehs.io at your school or district, check out Using the CodeHS.io Domain for HTML Assignments & Sandbox Programs and use the CodeHS domain testing tool to verify which domains are accessible on your network.


HTML Program Moderation

In addition to privacy settings that control who can view student programs, CodeHS provides moderation tools to manage program content, including the external websites a program can load or link to. Program moderation on CodeHS combines automated protections with teacher tools to keep program content safe and classroom-appropriate.

How CodeHS Moderation Works

  1. Students publish programs: HTML programs run on CodeHS-owned infrastructure (codehs.me by default, or codehs.io if enabled) giving CodeHS full control over every published program.

  2. Automatic checks run: CodeHS scans published programs for proxy domains and known policy violations, automatically flagging suspicious content before you need to act.

  3. Teachers investigate: Use the Website Moderation tool to trace any codehs.me or codehs.io URL back to its author and Code Editor source in seconds.

  4. Teachers block or report: Block your students’ programs immediately or report any program for CodeHS review. All flagged programs are tracked in the Reported Programs tool.

  5. CodeHS reviews content: CodeHS teams review every reported program and enforce the Terms of Use. Your reports go to real people who take action.

  6. Allowlists prevent access issues: Proactively restrict student browsing with the Student Website Allowlist tool so only approved domains are accessible.

Automated Program Security

CodeHS provides program security protections that run automatically in the background for all users:

CodeHS Blocklist

CodeHS maintains a blocklist of restricted domains and programs, including known proxy sites and game sites. If a student tries to run or save a program containing a blocked domain, the program content becomes immediately inaccessible and the student receives a warning message. Blocked programs are then reviewed by CodeHS moderators.

Proxy Domain Detection

CodeHS automatically detects programs that attempt to act as web proxies, or URLs that reroute content to bypass school network restrictions, and flags them for teachers and CodeHS team members to review.

Human Content Reviews

CodeHS moderators actively review programs that are reported or flagged by teachers, students, or automated systems and take action to enforce our Terms of Use so students remain in a safe, focused learning environment.

Teacher Program Moderation Tools

Teacher Program Moderation tools are available as part of CodeHS Pro. To get CodeHS Pro for your school, contact our team at sales@codehs.com.

Teachers have several tools to control what students can access and publish within CodeHS:

Website Moderation

Look up any CodeHS-hosted program URL to view information about the program’s author and Code Editor source. If the program was created by one of your students, you can block it immediately. If it was created by another CodeHS user, you can report it to CodeHS for review.

Reported Programs

Track programs that you have reported to CodeHS moderators with the Reported Programs tool. Monitor the program’s moderation status at a glance, and check the program output to confirm if it has been corrected or blocked.

Student Website Allowlists

Instead of relying on a blocklist, you can use Whitelist Enforcement and the Student Website Allowlist to define exactly which external URLs students are permitted to include and access within their programs. When whitelist enforcement is enabled, all external requests in student programs are blocked by default.

You can then individually add approved domains to your Course or Section’s Student Website Allowlist or auto-populate the list with domains your course requires.

Administrators have the option to enforce whitelists across an entire school or district for more control over student website access.

For more about using whitelists and allowlists to manage student access to external content, check out Using Whitelist and Allowlist Tools to Manage Student Access to External Websites.

CIPA Compliance

CodeHS's privacy and moderation tools support schools' CIPA compliance requirements. For details, see our Privacy Policy and CIPA Compliance Statement.


Still have questions? Contact our team at support@codehs.com.

Did this answer your question?