Article 4WMA3 Make a webpage unopenable before a set time.

Make a webpage unopenable before a set time.

by
Pedroski
from LinuxQuestions.org on (#4WMA3)
I have a little homework webpage. Each week I upload a new webpage for each class. Each student clicks on the button for their class, that opens leitfile.html, which has a button for each school week. Each button links to a webpage with homework.

A little javascript blocks the newest button until the set time is reached, then the button is live. This blocks access to the webpage for that week.

However, the webpage is not actually blocked, it's just the link is disabled. The webpage can be opened, if you know it's name.

All the names look like this: 18BEwW16.html

This week is winter Week 16, wW16, 18BE is one of the classes.

It is a bit inconvenient to only upload just before the time to open the homework. I like to upload the pages on the weekend.

Can you think of a way to prevent a webpage opening before a set time?

Some kind of chronjob on the webhost? Maybe something that will copy the webpage into the correct folder at a set time? Or unscramble the name? Or something else??

The webhost is GoDaddy, it uses cPanel and Linux. For my small purposes, everything works great.

Very grateful for any tips!latest?d=yIl2AUoC8zA latest?i=pdMCTud7JFI:k-k_Lon6dLg:F7zBnMy latest?i=pdMCTud7JFI:k-k_Lon6dLg:V_sGLiP latest?d=qj6IDK7rITs latest?i=pdMCTud7JFI:k-k_Lon6dLg:gIN9vFwpdMCTud7JFI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments