Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2005, 11:04 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Lois
Default password protect a webpage

i am a beginner as you can tell. I want to add a page that is password protected to my website. Can this be done with
Dreamweaver or do i need something else like some JavaScript?

 
Old March 6th, 2005, 11:24 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It depends.

You could use JavaScript to ask the client for a password. Then you could redirect the client to something like: password.html

This only works when you have an obscure password / pagename, like sdgsjd324urtsdjv.html. This solution is not considered to be secure, so use it only in very basic scenario's.

It's much better to have the Web Server or your application enforce the security. In IIS you can block specific files and folder and only allow access when your users supply the right password.
If you want to implement application security, you need a data store like a database. Dreamweaver provides server behaviors that work with a database to protect specific pages and page areas. You'll need to use a server side technology, like ASP or PHP to make this work.

Take a look at this book if you want to find out more: Beginning Dreamwaver MX 2004.

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protect .pdf doc for subscribed reports NatashaL Reporting Services 1 December 2nd, 2008 07:54 PM
Password protect XLS using XML aspless XML 6 April 30th, 2008 06:17 AM
how to create zip file with password protect? mutu C# 2005 2 September 21st, 2007 06:17 AM
protect app angelboy C# 2005 4 March 9th, 2007 01:22 PM
Password-Protect Certain Scenes Ben Horne Flash (all versions) 5 April 5th, 2004 11:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.