Skip to content

im-anishraj/secure-exam-browser-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ ExamShield

Lock the browser. Secure the exam. Zero compromises.

License: MIT Chrome Extension Manifest V3 PRs Welcome Stars Issues

A lightweight, open-source Chrome/Edge browser extension that prevents cheating during online exams by restricting browser behavior โ€” no backend required.

๐Ÿš€ Get Started ยท ๐Ÿ“ธ Screenshots ยท ๐Ÿค Contribute ยท ๐Ÿ“œ License


ExamShield Banner


๐Ÿง  The Problem

Online exams are broken.

With remote learning and digital assessments becoming the norm, cheating has never been easier:

  • Students open answer tabs mid-exam without any detection
  • Copy-paste from external sources takes seconds
  • Right-click menus expose hidden copy/search options
  • Institutions lose credibility; top performers are unfairly disadvantaged
  • Expensive proctoring software is out of reach for small colleges and startups

๐Ÿ“Š Studies show that ~73% of students admit to some form of cheating in online assessments. The gap between expensive enterprise proctoring tools and zero-protection quizzes is massive.

ExamShield fills that gap โ€” for free.


๐Ÿš€ The Solution

ExamShield is a free, open-source browser extension that transforms any standard browser into a focused, locked-down exam environment โ€” without requiring any server infrastructure, login system, or paid subscription.

It works silently in the background, enforcing exam discipline directly at the browser level. Student opens exam โ†’ Activates ExamShield โ†’ Browser locks down โ†’ Exam runs clean โœ…

โœจ Features

Feature Description
๐Ÿšซ Tab Blocking Prevents opening new tabs or switching away from the exam window
๐Ÿ“‹ Copy-Paste Disabled Blocks Ctrl+C, Ctrl+V, and clipboard access entirely
๐Ÿ–ฑ๏ธ Right-Click Disabled Removes the context menu to prevent search/copy shortcuts
โšก Zero Latency Runs 100% client-side โ€” no backend, no data collection
๐ŸŒ Cross-Browser Works on Chrome and Edge (Manifest V3 compliant)
๐Ÿ”’ Lightweight Under 50KB โ€” no bloat, no tracking, no nonsense
๐ŸŽ“ Plug & Play No configuration needed โ€” load and go

๐Ÿ” Features Breakdown

๐Ÿšซ 1. Tab Blocking

New tab shortcuts (Ctrl+T, Cmd+T) and link-based tab opens are intercepted and blocked. If a student attempts to open a new tab, the action is silently suppressed โ€” keeping focus on the exam page.

// Blocks new tab creation at the Chrome extension level
chrome.tabs.onCreated.addListener((tab) => {
  chrome.tabs.remove(tab.id);
});

This covers: keyboard shortcuts, right-click โ†’ open in new tab, and middle-click link opens.


๐Ÿ“‹ 2. Copy-Paste Restriction

All clipboard operations are disabled using DOM event listeners injected into the exam page:

  • Ctrl+C / Cmd+C โ€” Copy blocked
  • Ctrl+V / Cmd+V โ€” Paste blocked
  • Ctrl+X / Cmd+X โ€” Cut blocked
  • Drag-and-drop text selection is also intercepted

This prevents students from copying questions into external AI tools or pasting in pre-written answers.


๐Ÿ–ฑ๏ธ 3. Right-Click Disabling

The browser's native context menu is suppressed entirely via the contextmenu event. This removes quick-access options like:

  • "Search Google for..."
  • "Copy"
  • "Inspect Element" (useful for advanced cheating attempts)

๐Ÿ› ๏ธ Tech Stack

Technology Purpose
JavaScript (ES6+) Core extension logic
HTML5 Popup UI
CSS3 Extension styling
Chrome Extensions API Tab management, scripting, permissions
Manifest V3 Modern extension standard (Chrome/Edge compatible)

โš™๏ธ Installation

Option 1: Manual Load (Developer Mode)

โš ๏ธ This extension is not yet on the Chrome Web Store. Load it manually using the steps below.

Step 1 โ€” Download the Extension

git clone https://github.com/YOUR_USERNAME/examshield.git

Or Download as ZIP and extract it.


Step 2 โ€” Open Chrome Extensions Page

Navigate to: chrome://extensions/

Step 3 โ€” Enable Developer Mode

Toggle "Developer mode" in the top-right corner of the extensions page.


Step 4 โ€” Load the Extension

  1. Click "Load unpacked"
  2. Select the extracted examshield folder
  3. The ExamShield icon will appear in your browser toolbar โœ…

Step 5 โ€” Activate During Exam

  1. Open your exam/test URL
  2. Click the ExamShield icon in the toolbar
  3. Press "Enable Protection"
  4. The browser is now locked โ€” exam mode is active ๐Ÿ”’

Edge Browser

The same steps apply for Microsoft Edge (edge://extensions/). ExamShield is fully compatible with Chromium-based browsers.


๐Ÿ“ธ Screenshots

๐Ÿ”„ Replace placeholders below with actual screenshots.

Extension Popup (Active)

Popup Screenshot


Tab Blocking in Action

Tab Block Screenshot


Exam Mode Dashboard

Exam Mode Screenshot


๐ŸŽฏ Use Cases

๐ŸŽ“ Colleges & Universities

Lock student browsers during remote midterms and finals. No need for expensive proctoring software โ€” deploy ExamShield as a lightweight alternative or supplementary layer.

๐Ÿ’ผ Recruitment Platforms

Tech companies and HR teams running online coding assessments or aptitude tests can ensure candidates aren't Googling answers mid-test.

๐Ÿงช Online Test Platforms

Integrate ExamShield instructions into your test-taking flow. Ask users to install and activate before beginning โ€” a zero-infrastructure integrity layer.

๐Ÿ“š Students (Self-Discipline Mode)

Students who want to practice under real exam conditions can activate ExamShield themselves to simulate a focused test environment.


โš ๏ธ Limitations

We believe in honesty. ExamShield is a deterrent, not an absolute lock. Here's what it currently cannot prevent:

Limitation Why
๐Ÿ–ฅ๏ธ Secondary device usage Cannot detect phones or second monitors
๐Ÿ‘๏ธ Screen sharing to a helper No video monitoring capability
๐Ÿงฉ Other browsers Only works on the browser it's installed in
๐Ÿ› ๏ธ Extension removal A determined user can disable it before the exam
๐Ÿค– AI tools on other devices External ChatGPT usage is undetectable

ExamShield works best when combined with human supervision, time limits, and question randomization.


๐Ÿ”ฎ Future Improvements

We have big plans. Here's what's on the roadmap:

  • ๐Ÿค– AI-Powered Proctoring โ€” Detect suspicious behavior patterns
  • ๐Ÿ‘๏ธ Face Detection โ€” Verify student presence via webcam (WebRTC + ML)
  • ๐Ÿ“ธ Periodic Screenshots โ€” Capture exam screen at random intervals
  • ๐Ÿ”„ Tab Switch Detection โ€” Log and alert on window focus loss
  • ๐Ÿ–ฅ๏ธ Full-Screen Enforcement โ€” Force exam into fullscreen mode
  • ๐Ÿ“Š Admin Dashboard โ€” View exam integrity reports per student
  • ๐ŸŒ Firefox Support โ€” Extend to Manifest V2/V3 Firefox builds
  • ๐Ÿ”— LMS Integration โ€” Plugins for Moodle, Canvas, Google Classroom

Want to work on any of these? Open a PR!


๐Ÿค Contributing

Contributions are what make open source amazing. All contributions are welcome!

# 1. Fork the repo
# 2. Create your feature branch
git checkout -b feature/amazing-feature

# 3. Commit your changes
git commit -m "Add: amazing feature description"

# 4. Push to the branch
git push origin feature/amazing-feature

# 5. Open a Pull Request

Please read CONTRIBUTING.md before submitting.

๐Ÿ› Found a Bug?

Open an Issue with steps to reproduce. We respond within 48 hours.



๐Ÿ“œ License

Distributed under the MIT License. See LICENSE for more information.

About

๐Ÿ›ก๏ธ Browser extension to prevent cheating in online exams โ€” blocks new tabs, disables copy-paste & right-click. Built for colleges & test platforms.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors