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!


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!