can i use .htaccess for a web service authentication?

General discussions related to php

Moderators: macek, egami, gesf

jean
New php-forum User
New php-forum User
Posts: 4
Joined: Wed Mar 06, 2013 5:19 am

can i use .htaccess for a web service authentication?

Postby jean » Wed Mar 06, 2013 8:20 am

can i use .htaccess for a web service authentication?

viper94x
New php-forum User
New php-forum User
Posts: 15
Joined: Mon Apr 16, 2012 2:15 am
Location: Netherlands

Re: can i use .htaccess for a web service authentication?

Postby viper94x » Tue Mar 12, 2013 2:05 am

Yes, you can!

http://engineering.oregonstate.edu/computing/web/43

Some interesting info about the security of htaccess:

Straight from Apache's documentation:
The most common method is Basic, and this is the method implemented by mod_auth_basic. It is important to be aware, however, that Basic authentication sends the password from the client to the server unencrypted. This method should therefore not be used for highly sensitive data, unless accompanied by mod_ssl. Apache supports one other authentication method: AuthType Digest. This method is implemented by mod_auth_digest and is much more secure. Most recent browsers support Digest authentication.

jean
New php-forum User
New php-forum User
Posts: 4
Joined: Wed Mar 06, 2013 5:19 am

Re: can i use .htaccess for a web service authentication?

Postby jean » Tue Mar 12, 2013 11:31 am

hey thanks u for the information bro that was what i needed

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: can i use .htaccess for a web service authentication?

Postby johnj » Tue Mar 12, 2013 8:55 pm

Yes, .htaccess can be used for authorization and authentication.


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 0 guests