NameSilo

Protect files/folders with .htaacess

Spaceship Spaceship
Watch

gamernaveen

Established Member
Impact
1
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... :(
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
I see one way via a redirect.
You can pass the authentication in the URL like this:
http://www.protectedsite.com
=> http://user_name:[email protected]

This is HTTP-compliant, however some browsers will display a warning, for example Opera will say
Security warning:

You are about to go to an address containing a username.

Username: ##############
Server: ##############

Are you sure you want to go to this address?
which can be confusing for the user.
 
0
•••
sdsinc said:
I see one way via a redirect.
You can pass the authentication in the URL like this:
http://www.protectedsite.com
=> http://user_name:[email protected]

This is HTTP-compliant, however some browsers will display a warning, for example Opera will say
which can be confusing for the user.

Yup I know that method , as am dealing with mobile browsers , I doubt whether they support such url's , and considering browsers like I.E , they still display prompts even with such url's passed as far as I know.

How bout coding a php file which recognizes the status , from which it then sends the user and pass data to the server via same method which the browser sends ?
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back