Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

can i use .htaccess for a web service authentication?

General discussions related to php

Moderators: macek, egami, gesf

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?
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 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.
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 jean » Tue Mar 12, 2013 11:31 am

hey thanks u for the information bro that was what i needed
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 johnj » Tue Mar 12, 2013 8:55 pm

Yes, .htaccess can be used for authorization and authentication.
johnj
php-forum Super User
php-forum Super User
 
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm


Return to PHP General

Who is online

Users browsing this forum: landi and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.