Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 11-20-2003, 02:06 PM   #1 (permalink)
v7n Mentor
 
Calisonder's Avatar
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 2,214
iTrader: 0 / 0%
Latest Blog:
None

Calisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really nice
Send a message via AIM to Calisonder
Password protect pages - htaccess, php, cgi

Ok, I have an html log in form, here (http://www.oliverswater.com/password.html), and everything works ok. The username is Joshua and the password is Dowdy. The login directs me to the page that i want it to, here, (http://www.oliverswater.com/loginenter.html), so that works. But it truly is not password protecting anything because you could just go directly to http://www.oliverswater.com/loginenter.html and it doesn't ask you for a password or anything. Does anyone have a free script or know where one is that will only allow someone to get to a protected page through a login screen.
__________________
5Twelve Design

"The music that really turns me on is either running toward God or away from God. Both recognize the pivot, that God is at the center of the jaunt."
::: Bono :::
Calisonder is online now  
Add Post to del.icio.us
Reply With Quote
Old 11-20-2003, 02:22 PM   #2 (permalink)
Inactive
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 534
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
Yeah, I know what you mean - this type of protection isn't the best. I'd recommend something that uses .htaccess.

http://www.hotscripts.com/
http://cgi.resourceindex.com/
etc
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-20-2003, 04:08 PM   #3 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 1,671
iTrader: 0 / 0%
Latest Blog:
None

AcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the roughAcRoNym is a jewel in the rough
wouldnt bother wiv cgi its old and has vunerabilties go fo php
AcRoNym is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-20-2003, 05:30 PM   #4 (permalink)
Inactive
 
dave conz's Avatar
 
Join Date: 10-13-03
Location: New Zealand
Posts: 534
iTrader: 0 / 0%
Latest Blog:
None

dave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the roughdave conz is a jewel in the rough
Quote:
Originally Posted by AcRoNym
wouldnt bother wiv cgi its old and has vunerabilties go fo php
Not the most balanced or informative comment I've seen on this issue. There are many pros and cons of these technologies and there's plenty of information to help you decide which best suits your needs.

If you have no personal language preference, I think you should choose based on how well the script meets your needs, not the language it's written in.
dave conz is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-20-2003, 08:59 PM   #5 (permalink)
v7n Mentor
 
Calisonder's Avatar
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 2,214
iTrader: 0 / 0%
Latest Blog:
None

Calisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really nice
Send a message via AIM to Calisonder
ya i agree dave, damn i'm still having trouble finding what i need
__________________
5Twelve Design

"The music that really turns me on is either running toward God or away from God. Both recognize the pivot, that God is at the center of the jaunt."
::: Bono :::
Calisonder is online now  
Add Post to del.icio.us
Reply With Quote
Old 11-20-2003, 09:02 PM   #6 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 275
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
You could set a cookie on the login page and use a redirect in the enter page if they don't have the cookie.

In ASP it might look something like this for the login page's action... maybe:

[code:1:b3e3e2b283]
<%
If password <> ('password') Then
Page.Location = "wrong.hml"
Else setCookie stuff....
Page.Location = "welcome.html"
End If
%>
[/code:1:b3e3e2b283]

Hope this helps.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-21-2003, 04:36 AM   #7 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,821
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
The only thing wrong with that Distorted, is it relies on the user having cookies enabled.

No I think an .htaccess based solution is best.

That way anyone trying to go directly to the protected files will be asked for username and password by their browser.

I'm not sure how the log-in page would pass the username and pass word, but it is possible to to go to http://usename:password@www.example.com/members/ and it will do the log-in if the username an pword are correct.
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-21-2003, 05:13 AM   #8 (permalink)
v7n Mentor
 
Calisonder's Avatar
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 2,214
iTrader: 0 / 0%
Latest Blog:
None

Calisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really nice
Send a message via AIM to Calisonder
thanks guys
__________________
5Twelve Design

"The music that really turns me on is either running toward God or away from God. Both recognize the pivot, that God is at the center of the jaunt."
::: Bono :::
Calisonder is online now  
Add Post to del.icio.us
Reply With Quote
Old 11-21-2003, 07:44 AM   #9 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
or on the protected file page you could have (this is php)
if ( !isset($username || $password) {
header (location: http://domain.com/sorry.html);
}
Essentially saying if those are not set then goto sorry.html
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-21-2003, 08:16 AM   #10 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,821
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
where do $username and $password come from (when they are logged on)?
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-21-2003, 08:40 AM   #11 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
Yep.. once they are logged on you can set those variables as global.. the problem with the html form though is that it gets put into the url many times - so it would all have to be php to hide the variables from the browser window.
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-21-2003, 08:50 AM   #12 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,821
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
many times?

I tought it's just sent via POST to the file names in the action property?
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-21-2003, 12:58 PM   #13 (permalink)
v7n Mentor
 
Calisonder's Avatar
 
Join Date: 10-13-03
Location: Dallas, Texas, U.S.A.
Posts: 2,214
iTrader: 0 / 0%
Latest Blog:
None

Calisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really niceCalisonder is just really nice
Send a message via AIM to Calisonder
there we go, keep talkin guys, were getin somewhere, thanks alot
__________________
5Twelve Design

"The music that really turns me on is either running toward God or away from God. Both recognize the pivot, that God is at the center of the jaunt."
::: Bono :::
Calisonder is online now  
Add Post to del.icio.us
Reply With Quote
Old 11-21-2003, 02:56 PM   #14 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
By many times I mean often the variables can be visible..
with php it hides them as a server side function. It could be standard security / authorization script found at hotscripts..
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-25-2003, 06:42 AM   #15 (permalink)
Contributing Member
 
DragonEye's Avatar
 
Join Date: 10-13-03
Location: Belgium
Posts: 322
iTrader: 0 / 0%
Latest Blog:
None

DragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebodyDragonEye is liked by somebody
Send a message via MSN to DragonEye
I have made a system that doesn't use .htaccess but i'm pretty sure it works for a 100%

I made it for the controlcenter of my website. I have a script on every page (with an include) that checks for a username and password in the database. The password and username from the login form are stored in a PHP session. I have made sure that cookies don't have to be enabled for it to work.

it's quite complicated though

if you want more info

mail me

grtz

DragonEye
DragonEye is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-29-2003, 01:28 AM   #16 (permalink)
Inactive
 
cltwebs's Avatar
 
Join Date: 10-15-03
Location: Charlotte, NC
Posts: 537
iTrader: 0 / 0%
Latest Blog:
None

cltwebs is liked by somebodycltwebs is liked by somebodycltwebs is liked by somebodycltwebs is liked by somebodycltwebs is liked by somebody
Send a message via AIM to cltwebs Send a message via MSN to cltwebs Send a message via Yahoo to cltwebs
Just as an added note...

Sometimes the Web Hosting Provider will have built in password protection built into their control pannel for directories on your site.
cltwebs is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-29-2003, 06:41 AM   #17 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,821
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
doesn't .htaccess cause thebrowser to prompt theuser for username and password?
How can you securely have the log-in fields on the page instead of the browser dialogue?
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is There a Fool-Proof Script to Protect Web Pages? tdgac Web Design Lobby 1 07-30-2007 02:16 AM
password protect addentry.php Golfer Coding Forum 0 09-09-2005 02:17 AM
password protect games_master Coding Forum 8 04-01-2005 04:56 PM
How do you password protect a folder?? chrisnrach17 Web Design Lobby 5 06-16-2004 06:38 AM
[Linux]Password protect a web site directory using .htaccess QT_ Dedicated Servers 0 01-08-2004 08:07 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:56 AM.
© Copyright 2008 V7 Inc