Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



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
Trades: 0
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]
__________________

Please login or register to view this content. Registration is FREE
RCEP is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-15-2007, 12:10 AM Re: Help me protecting files/folders with .htaacess
vangogh's Avatar
Post Impressionist

Posts: 10,689
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
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 |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
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
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
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.
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
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
Defies a Status

Posts: 1,605
Trades: 0
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

Please login or register to view this content. Registration is FREE
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
Defies a Status

Posts: 6,522
Name: Dan
Location: Swindon
Trades: 0
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
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
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 Search this Thread
Search this Thread:

Advanced Search

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 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.84029 seconds with 12 queries