Solved

IIS7, HTML website, configure site so disclaimer page appears whatever is initially browsed.

Posted on 2014-09-16
3
228 Views
Last Modified: 2014-09-18
We have a new site that requires each user to accept the disclaimer before continuing into the site, the site is written in HTML and is running on a IIS7 server.  We have tried using HTTP redirect but that just gets stuck in a loop with it pointing at the same websitte.

Basically if someone browses to www.thesite.com/contactus  we would like it to show www.thesite.com/disclaimertext

Disclaimertext could be the Home Page.

We're no web experts I'm afraid.

Thank you

Ed
0
Comment
Question by:edwalters
3 Comments
 
LVL 29

Assisted Solution

by:becraig
becraig earned 167 total points
ID: 40326906
Are you asking to have the disclaimer text show up only on that page ?

You could simply use a div on the main page and use z-index to layer it on top and require the user to click ok before allowing them to see the specific page.

If that is what you have in mind I can probably give you a quick sample:

http://www.w3.org/wiki/CSS/Properties/z-index
0
 
LVL 79

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 166 total points
ID: 40326960
If you want to only show the disclaimer page once then on your pages check for the session cookie that you set once the disclaimer page has been displayed and the user clicks OK
0
 
LVL 28

Accepted Solution

by:
sammySeltzer earned 167 total points
ID: 40327078
Hi,

If you want your site visitors to accept disclaimer before continuing, I think the easiest thing to do is use the refresh meta tag to redirect user.

For instance, let's assume you have a default.html page or home.html page or whatever your initial landing page is, in our case, lets use default.html.

Have this text in default.html page:


<html>  
  <head>  
    <title>IU Webmaster redirect</title>  
     <META http-equiv="refresh" content="2;URL=disclaimer.html">  
      </head>  
       <body bgcolor="#ffffff">  
       </body>  
   </html> 

Open in new window


Basically, a user goes to www.thesite.com/default.html and the page immediately (in 2 seconds), redirects the user to the disclaimer page (disclaimer.html).

Then on this disclaimer page, display your text and present user with two links or buttons.

One says, Accept and the other says, No, thanks.

If the user clicks the Accept link or button, then the user continues to home page something like:

<a href="www.thesite.com/home.html">Accept</a>

If the user clicks on No thanks, the user is redirected to Goodbye page, something like:

<a href="www.thesite.com/goodbye.html">No, thanks</a>

Then on goodby.html page, have something to the effect, thanks for visiting.

Alternatively, you could have a simple javascript on default.html.

This javascript will have a checkbox that says Agree to terms and conditions.

If the user checks the box, the user clicks a button or link that says Continue and will be taken to home page.

If the user does not check the box, the Continue button will be grayed out and the user won't continue to home page.

I am sure there are more options out there.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question