Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
#149168 03/09/2002 1:29 PM
Joined: May 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 13
quote:
Originally posted by jordo:
this puts a .htaccess file in the non-cgi directory, so any files in that directory will be protected by the htaccess password popup. that includes any html pages in that dir.

Okay, I have the hack installed and it seems to be working. However, I did have to manually create the vars_htaccess.cgi file to get it to work. You may want to consider adding that to your instructions. So, with that said, here's what I am ultimately trying to do. I do not want the CGI-BIN or UBB directories protected. I want to see if I can protect another directory on my site using the UBB membership database. I want to create separate tutorial and file download pages for members only. Got any ideas? Where might I edit the hack to point the protection at a different directory?

thanks in advance!

Sponsored Links
#149169 03/09/2002 5:56 PM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
in the additions made to cp_lib.cgi you will find this:

Code
[/code]replace it with this (and change the "/path/to/protected/dir" to the dir you want to protect:

[code]

#149170 03/09/2002 9:24 PM
Joined: May 2001
Posts: 13
Junior Member
Junior Member
Offline
Joined: May 2001
Posts: 13
Sweet! It seems to be working perfectly so far. Thanks for your help!

#149171 03/28/2002 8:47 PM
Joined: Jul 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 2
Jordo, laugh This is a beautiful, beautiful thing!!!

I've been using a really old htaccess hack that was starting to fall apart.
I've been afraid to upgrade my board because upgrading to 6.0 almost made my brain explode.

There are many people looking for a way to use the ubb registration info to protect their site and this hack does exactly that. I added an htgroup file and a few other htaccess files that all point to htpasswd and so far so great!

Out of curiosity, do you have any hints on how to make htaccess check the ubb cookie?

Have I mentioned how great this is?
thank you,
-i

#149172 03/29/2002 1:51 AM
Joined: Aug 2000
Posts: 874
Moderator / Developer
Moderator / Developer
Offline
Joined: Aug 2000
Posts: 874
quote:
Originally posted by qgeek:
Out of curiosity, do you have any hints on how to make htaccess check the ubb cookie?

how do you mean?

Sponsored Links
#149173 03/29/2002 2:37 PM
Joined: Jul 2001
Posts: 2
Junior Member
Junior Member
Offline
Joined: Jul 2001
Posts: 2
I would love to be able to check to see if a cookie exists and if it doesn't, send users to a page with a registration link and an "I forgot my password" link (because if it's not saved they won't remember it wink )

If the cookie does exist I need to pull out the username/password so htaccess can determine what group a user is in.

My problem seems to be not so much reading ubb cookies as passing that info to htaccess.

Page 2 of 2 1 2

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)