Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

.htaccess - database authentication

Hello - we have a website with cookies authentication and .htaccess file that protect videos.

The problem we have is that .htaccess cannot read the users from our database to see if they are valid users or not.

we have something like this for the htaccess file to read users from our database with the correct values, please any ideas? Thank you.

AuthGroupFile /dev/null
AuthName RESTRICTED
AuthType Basic
 
AuthMySQLHost
AuthMySQLDB
AuthMySQLUser
AuthMySQLPassword
AuthMySQLUserTable username
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLCryptedPasswords Off
AuthMySQLScrambledPasswords Off
AuthMySQLKeepAlive on
 

<Limit GET POST>
 require valid-user
</Limit>
0
epmo
Asked:
epmo
  • 3
1 Solution
 
JJSmithCommented:

have you read through:

http://www.javascriptkit.com/howto/htaccess.shtml

Cheers
JJ
0
 
JJSmithCommented:

For a more specific mysql config try:

http://www.linuxhelp.net/guides/htaccessmysql/

Cheers
JJ
0
 
JJSmithCommented:

Note the:

AuthMySQLAuthoritative            On

in the link above.

Cheers
JJ
0
 
epmoAuthor Commented:
Thank you
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now