UK Webmaster Talk - Online Marketing - SEO


 

How to require a password to update a page

This is a discussion on How to require a password to update a page within the Php and MySQL forums, part of the Programming / Scripting / Coding category; hi, i made a site like the neopets guilds where users can create guilds and create small sites similar to ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Website Design & Development > Programming / Scripting / Coding > Php and MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 08-07-2005, 01:53   #1 (permalink)
Newbie
 
Join Date: May 2005
Posts: 6
iTrader: 0 / 0%
hdshngout is on a distinguished road
Exclamation How to require a password to update a page

hi, i made a site like the neopets guilds where users can create guilds and create small sites similar to the neopets pet pages. what i want to know is how do you make it so the user has to put in their password before the user can update a guild or their profile. I have had major security issues and i really need this code. Any help would be appreciated.
hdshngout is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2005, 06:40   #2 (permalink)
Senior Member
 
Join Date: Jun 2005
Posts: 389
iTrader: 0 / 0%
FrozenDice will become famous soon enough
Default

Well we don't know how your page is built so its going to be hard to just supply you with a block of code.

You could just (assuming you use php) have them pass the password and username through the url. Although that is a little insecure. Or you could just use .htaccess to make a protected directory where the guild leader would change the settings there. I'm assuming its a seperate page where they fiddle arround with the settings. More secure.

Tell me which idea you like and I can give your more info on them.
FrozenDice is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2005, 07:11   #3 (permalink)
Newbie
 
Join Date: May 2005
Posts: 6
iTrader: 0 / 0%
hdshngout is on a distinguished road
Default

my page is built using php, i dont know which would be better. but what ever way i do it, there has to be a way that a form could insert the password and id either into the database or into a htaccess file.
hdshngout is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-07-2005, 20:04   #4 (permalink)
Senior Member
 
Join Date: Jun 2005
Posts: 389
iTrader: 0 / 0%
FrozenDice will become famous soon enough
Default

Are you using mysql on this website? I'm assuming you are because that would be the easiest route. Either way just make a directory for every user, apply a .htaccess to it using their password (make php write the .htaccess file and change passwords) and have the script inside there which makes the changes you want to the guild that they select. Do you understand or am I totally being confusing?
FrozenDice is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09-07-2005, 05:59   #5 (permalink)
Cool Newbie
 
Join Date: Jun 2005
Posts: 28
iTrader: 0 / 0%
Sameth is on a distinguished road
Default

oh, if you use the .htaccess route changing the htaccess is easy and to change the .htpasswd just use the unix command and append it to the file, also you can use groups in .htaccess. for ease of use i'd recomend php but for security go with .htaccess because its built into apache and quite more secure and not as vurnerable. but if you go with .htaccess all the passwords are encoded so you can't just see them so you can't do easy password retreval. I'd personaly go with php, thats because i've done it before.

I think you can put php and apache .htaccess password stuff together somehow.
Sameth is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
page, password, require, update

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

BB 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
Do You Require Resolution Time Guarantee? kondorr Hosting Forum 3 09-09-2008 07:59
Google ban and PR Update Gosu Google Forum 3 13-07-2006 17:28
Page Rank Update rustypaulin General Webmaster Discussion 2 20-10-2005 19:45
PR Update kprhosting Google Forum 11 19-07-2005 21:40
Next Google Update? Wistow Google Forum 4 10-03-2005 14:02


All times are GMT +1. The time now is 16:33.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41