Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

370 posts

Ultimate Geek


Topic # 31173 7-Mar-2009 16:29
Send private message

Hi guys

I was wondering if you could help me with a certain problem. Once a week from Time A to Time B I want a website I'm developing to display a message and not allow access to any other parts of the website. How would I go about doing this? I know that I can stick a tag to forward it to a different page but that requires work every single week.

The best option for me would for me to put Time A and Time B into a .csv file. As every week the time for the website to be shut down would change and every week the time for the website to be brought back up would change. This is not strictly neccesary but would be really nice to have.

Any help would be appreciated!

Create new topic
Phil Gale
1107 posts

Uber Geek
+1 received by user: 44

Red Jungle

  Reply # 199797 7-Mar-2009 19:43
Send private message

This could be achieved any number of ways - but you haven't mentioned any details of the architecture you're using...

Server? IIS/Apache/whatever? Language? PHP/ASP.NET/Rails/etc.?

Red Jungle: we make fantastic software

RSS  Twitter  Facebook  Skype

6333 posts

Uber Geek
+1 received by user: 394

Lifetime subscriber

  Reply # 199842 8-Mar-2009 00:34
Send private message

RedJungle: Server? IIS/Apache/whatever? Language? PHP/ASP.NET/Rails/etc.?

I'll answer the Apache/PHP side of things since I know Mr RedJungle doesn't do it Cool

You can either do this using .htaccess with a 302 Temporary Redirect or drop a piece of code in your header file that checks a flag/database/file to see if to redirect users to a temporary file.  In times I've done this, I've print()ed to the screen, then do an exit; or return; to stop the rest of the page executing.

It .net it's much easier, just drop an app_offline.htm file into your root and you're away.

Create new topic

Donate via Givealittle

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Amazon introduces new Kindle with adjustable front light
Posted 21-Mar-2019 20:14

A call from the companies providing internet access for the great majority of New Zealanders, to the companies with the greatest influence over social media content
Posted 19-Mar-2019 15:21

Two e-scooter companies selected for Wellington trial
Posted 15-Mar-2019 17:33

GeForce GTX 1660 available now
Posted 15-Mar-2019 08:47

Artificial Intelligence to double the rate of innovation in New Zealand by 2021
Posted 13-Mar-2019 14:47

LG demonstrates smart home concepts at LG InnoFest
Posted 13-Mar-2019 14:45

New Zealanders buying more expensive smartphones
Posted 11-Mar-2019 09:52

2degrees Offers Amazon Prime Video to Broadband Customers
Posted 8-Mar-2019 14:10

D-Link ANZ launches D-Fend AC2600 Wi-Fi Router Protected by McAfee
Posted 7-Mar-2019 11:09

Slingshot commissions celebrities to design new modems
Posted 5-Mar-2019 08:58

Symantec Annual Threat Report reveals more ambitious, destructive and stealthy attacks
Posted 28-Feb-2019 10:14

FUJIFILM launches high performing X-T30
Posted 28-Feb-2019 09:40

Netflix is killing content piracy says research
Posted 28-Feb-2019 09:33

Trend Micro finds shifting threats require kiwis to rethink security priorities
Posted 28-Feb-2019 09:27

Mainfreight uses Spark IoT Asset Tracking service
Posted 28-Feb-2019 09:25

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.