Reply
Help me protecting files/folders with .htaacess
Old 09-14-2007, 03:22 PM Help me protecting files/folders with .htaacess
Average Talker

Posts: 23
Hi guys , I need some serious help , am
writing a script module with PHP , to add
user email with password after payment from paypal to the .htpasswd log.

When a user registers , his email and password gets added to the .htpasswd log ,So obv. , when he logins , he gets a prompt asking username and password ,the matter is I dont want the prompt to display , instead , I want to have a classic text box to send the email/pass data to the server.

Is there a way to send username(email) and password data to the server without prompt using .htaacess file/folder protection ?

Please help me guys...[/quote]
__________________
Ryan's District
RCEP is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-15-2007, 12:10 AM Re: Help me protecting files/folders with .htaacess
vangogh's Avatar
Post Impressionist

Posts: 9,012
Name: Steven Bradley
Location: Boulder, Colorado
I think what you want to do is build a login system with php/mysql. You'd want to first store the email and password in the database and then present a form for the user to use when logging in. The form will need to check the database to see if the user is registered with the correct login info.

I did a search for php login scripts and it looks like there are plenty of tutorials.

I think there are a variety of ways for setting this up. Keep security in mind when you code. You want to check and sanitize anything the user inputs which will be both when you first input the data and also when they login.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 09-23-2007, 06:29 PM Re: Help me protecting files/folders with .htaacess
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
iPod Touch or HD Video Camera?
Posts: 6,457
Name: Dan
Location: Swindon
I agree with Steven htacess login is generally very basic, and php/mysql user systems are much more usable and changeable and much easier to modify and use.
__________________
Seasons Greetings From XDnet.co.uk
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 09-23-2007, 09:36 PM Re: Help me protecting files/folders with .htaacess
King Spam Talker

Posts: 1,203
Quote:
Originally Posted by dansgalaxy View Post
I agree with Steven htacess login is generally very basic, and php/mysql user systems are much more usable and changeable and much easier to modify and use.

I agree with the "usable, changeable, much easier to modify and use" but I think the .htaccess might be much more secure.

If you go the php route be sure to study the sql injection aspect VERY carefully.

BTDT,
colbyt is offline
Reply With Quote
View Public Profile
 
Old 09-24-2007, 10:03 AM Re: Help me protecting files/folders with .htaacess
dansgalaxy's Avatar
Eat, Sleep, Code

Latest Blog Post:
iPod Touch or HD Video Camera?
Posts: 6,457
Name: Dan
Location: Swindon
Fair enough but often htaccess isnt secured properly (ie htpasswd is in a public foder) and if you write your scripts securly and have passwords encrypted in the database etc i would say and minor drop in security is negliable
__________________
Seasons Greetings From XDnet.co.uk
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Help me protecting files/folders with .htaacess
 

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14453 seconds with 12 queries