-
Tab/Application Change Detection
Detects when the user switches tabs or applications and logs it tolog.txt
. Logs off the user on the second attempt. -
Client-Side Timer
Lightweight, browser-based timer (no server-side implementation to save bandwidth). -
Login Logging
Records each successful login along with the timestamp inlogged.txt
. -
Single Login Mode
If enabled, prevents a user from logging in again untillogged.txt
is cleared. -
Google Forms Integration
Customizable Google Form embedded via an iframe inactual.html
. -
Input Sanitization
User-entered names are processed — capitalization is standardized and whitespaces removed. -
Full Login Logs
All login attempts and activity are neatly stored inlogged.txt
andlog.txt
.
-
Add User Names
Add the list of allowed usernames insidenames.json
.- No spaces between names.
- Write names in a block or array format.
-
Set Up Google Form
Replace the iframe link insideactual.html
with your own Google Form link. -
Enable/Disable Single Login Mode
- To enable Single Login: set the first line of
logged.txt
toTRUE
. - To disable: set the first line to
FALSE
.
- To enable Single Login: set the first line of
-
Change the Timer
Modify the timer duration by editing line 19 in/src/script.js
.Example:
20
for 20 minutes15.5
for 15 minutes 30 seconds
File/Folder | Purpose |
---|---|
names.json |
List of allowed usernames. |
logged.txt |
Tracks login timestamps and names. Controls Single Login Mode. |
log.txt |
Logs tab/application change events with timestamps. |
src/ |
Contains client-side files like index.html , actual.html , and script.js . |
server.js |
Express backend handling logins and activity monitoring. |
- Single Login Mode blocks users from re-logging in until
logged.txt
is cleared. - All login and tab switch events are timestamped for easy tracking.
- Make sure to customize your Google Form link before deploying.
npm install
node app.js