Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-19 16:48:08

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Password protect a whole domain?

Is there anyway to use ign_password_protect to password protect a whole site? I have areas of a site that don’t use TXP, like a photo gallery and forums. I’d like to use this plugin to manage users for ALL areas, is this possible?

So when users try to access mydomain.com they’ll always be sent to the same login page.

Offline

#2 2006-11-19 19:33:17

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: Password protect a whole domain?

You can always manage password protected access through yout htaccess file.


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#3 2006-11-20 03:00:06

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Password protect a whole domain?

Yep, that’s how you’d do it. Just remember to place the .htpasswd file in a non-public directory.

Offline

#4 2006-11-20 10:55:53

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Password protect a whole domain?

Thanks. I will explore that way but I think I have a better way, that doesn’t work yet. I put a .htaccess file in the non-txp directories I want protected containing the following…

AuthType Basic
AuthName “MySQL Member Page”

Auth_MYSQLhost localhost
Auth_MYSQLusername myusername
Auth_MYSQLpassword mypassword
Auth_MYSQLdatabase mydatabase
Auth_MYSQLpwd_table ign_users
Auth_MYSQLuid_field name
Auth_MYSQLpwd_field pass
Auth_MYSQL_EncryptedPasswords off

<LIMIT GET POST>
require valid-user
</LIMIT>

The problem is after doing this I get a TXP error page. So obviously it accessed the database but something is stopping it working.

Any ideas?

Offline

Board footer

Powered by FluxBB