# Web design question\*

**URL:** https://boards.straightdope.com/t/web-design-question/185796
**Category:** The BBQ Pit
**Created:** [July 2, 2003, 4:08pm UTC](https://boards.straightdope.com/t/web-design-question/185796 "2003-07-02T16:08:42Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![lissener](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lissener/32/6139_2.png) [@lissener](https://boards.straightdope.com/u/lissener)
#### Post date: [July 2, 2003, 4:08pm UTC](https://boards.straightdope.com/t/web-design-question/185796/1 "2003-07-02T16:08:42Z")

</div>

How do I make a page of my website password protected? How do I redirect someone from a payment page to the page where they choose a password? How do I monitor those passwords?

[sub]\* _From Manny, the Mod You Love to Hate, to me:_[/sub]

> [@](#):
>
> [sub]. . . you are banned from posting to any computer-related thread in GQ. . . . This includes entirely theoretical discussions, historic questions, everything. Turing question? Too bad – you’re banned from it. Same with everything from ENAIC to AI.[/sub]

---

<div class="post-metadata">

### Author: ![Starbury](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@Starbury](https://boards.straightdope.com/u/Starbury)
#### Post date: [July 2, 2003, 4:15pm UTC](https://boards.straightdope.com/t/web-design-question/185796/2 "2003-07-02T16:15:02Z")

</div>

I’m not sure if you’re looking for an answer to your question or just ranting against manhattan. Assuming your just looking for an answer to the quest…

You’ll have to use some type of server-side programming language to handle passwords. ASP is pretty easy to set up for this…if your web server is IIS/Microsoft and can run ASP scripts, let me know and I’ll send you some sample scripts for that.

You can also use ASP to redirect someone to another page. The code would look like this:

```auto

Response.Redirect("newpage.asp")

```

You can also use javascript to redirect, which is client-side programming and doesn’t require any special setup on your web server. The code might look like this:

```auto

<html>
<head>
<script language='javascript'>
<!--
function redirectuser(){

location.href = 'someotherpage.html';

};
//-->
</script>
</head>
<body onLoad='redirectuser();'>

You are now being redirected to some other page...

</body>
</html>

```

---

<div class="post-metadata">

### Author: ![lissener](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/lissener/32/6139_2.png) [@lissener](https://boards.straightdope.com/u/lissener)
#### Post date: [July 2, 2003, 4:16pm UTC](https://boards.straightdope.com/t/web-design-question/185796/3 "2003-07-02T16:16:14Z")

</div>

Thanks, that’s a help. And I wasn’t ranting against Manattan (except in my heart); I was just explaining why I posted this in the Pit.

---

<div class="post-metadata">

### Author: ![Mockingbird](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@Mockingbird](https://boards.straightdope.com/u/Mockingbird)
#### Post date: [July 2, 2003, 4:17pm UTC](https://boards.straightdope.com/t/web-design-question/185796/4 "2003-07-02T16:17:21Z")

</div>

Another way is to us .htaccess which IIRC, is a perl script.

---

<div class="post-metadata">

### Author: ![HideoHo](https://avatars.discourse-cdn.com/v4/letter/h/3ec8ea/32.png) [@HideoHo](https://boards.straightdope.com/u/HideoHo)
#### Post date: [July 2, 2003, 4:34pm UTC](https://boards.straightdope.com/t/web-design-question/185796/5 "2003-07-02T16:34:18Z")

</div>

If you are using a .Net capable server (runs on Win2K Server or Win2K3 server), [ASP.Net](http://ASP.Net) has some very nice ways to run security. Find out from your web host if you can use the .Net framework, and if so, I can show you how to setup password protection fairly quickly.

If you don’t have access to .Net, what kind of server are you on? Is it Unix? If so, then the .htaccess file is what you want to use. If it is an NT server without .Net then you’ll want to write it in standard ASP. I wouldn’t recommend implementing your security with javascript, as that can be turned off rather easilly. You’ll want to use some kind of server script, so if you can find out what you’re running on, I’ll be happy to help.

---

<div class="post-metadata">

### Author: ![UncleBeer](https://avatars.discourse-cdn.com/v4/letter/u/977dab/32.png) [@UncleBeer](https://boards.straightdope.com/u/UncleBeer)
#### Post date: [July 2, 2003, 4:41pm UTC](https://boards.straightdope.com/t/web-design-question/185796/6 "2003-07-02T16:41:14Z")

</div>

So. In order to circumvent one rule, you ignore another and \*\*knowingly post in an incorrect forum? I think not. What I believe you should have done, rather than indiscriminately ignore the rules governing your membership here, is e-mailed the GQ mods and asked for permission to post this in the only forum on these boards where this topic belongs.

I’m closing this thread. Manhattan may have some comments to add to it later, however. Wouldn’t surprise me a bit.
