Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2002
Posts: 18
Junior Member
Junior Member
Offline
Joined: Mar 2002
Posts: 18
Sick of the mods going into the control panel and messing around with your settings? Sick of that not so trusty admin deleting things he/she shouldn't? Not any more with this little mod.

Hack Name: Control Panel Restriction For Everyone, Even Admins

Author: Neo11223

Thanks To: Every mod that ever pissed me off and made me angry enough to lock the CP.

Description: Locks control panel to everyone except those you wish to enter.

Demo: n/a, cp mod

How To Do It: This mod involves using .htaccess and .htpasswd, if you have never used these files you may have some trouble with this mod.

First, make a notepad file with your user name and password.
Save this file as .htpasswd and upload to the cgi-bin.

Second, make a notepad file with the encoding to make the password prompt like this:


AuthUserFile /htdocs/users/c01555/wwf/wwfwrestlinggames.com/html/forum/cgi-bin/.htpasswd
AuthName Members
AuthType Basic
require valid-user


Save this file as .htaccess and upload to the cgi-bin.

And that's it! I know some of you already know this. I just thought I'd pass it along to the ones who don't, it's really a nice little tip.

Requirements: Valid UBB.classicTM License

Sponsored Links
Joined: Sep 2002
Posts: 16
Junior Member
Junior Member
Offline
Joined: Sep 2002
Posts: 16
Well done laugh
Thanks for that Tip!

bobbel

Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
Very nice... Useful for UBBs who don't quite trust their Admins "that much" laugh

Thanks smile

Joined: Sep 2001
Posts: 90
Member
Member
Offline
Joined: Sep 2001
Posts: 90
Thanks is it possible to make multiple users?

Joined: Nov 2001
Posts: 1,704
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
Joined: Nov 2001
Posts: 1,704
Just add more lines in .htpasswd, but remember to put them on separate lines, otherwise it won't work smile

Sponsored Links
Joined: Aug 2001
Posts: 103
Member
Member
Offline
Joined: Aug 2001
Posts: 103
How do you disable this hack if you do not wish to use it anymore?

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Quote
quote:
Originally posted by YoungTaeByun:
How do you disable this hack if you do not wish to use it anymore?
delete .htpasswd and .htaccess

Joined: Aug 2001
Posts: 103
Member
Member
Offline
Joined: Aug 2001
Posts: 103
That's the problem. I don't see the files anywhere. They've been uploaded but when I go back into the main ftp directory. It's not listed in there?

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Did you look for it in the cgi-bin directory(not the main ftp directory)? That's where they should be.

Joined: Aug 2001
Posts: 103
Member
Member
Offline
Joined: Aug 2001
Posts: 103
Quote
quote:
Originally posted by brett:
Did you look for it in the cgi-bin directory(not the main ftp directory)? That's where they should be.
Yes I did. Which is weird why they would not be listed.

Sponsored Links
Joined: Jun 2001
Posts: 729
Coder
Coder
Offline
Joined: Jun 2001
Posts: 729
Those files are typicaly hidden from view. Try typing "ll -a" to list all files (without the quotes). This will show you owners and groups associated as well as the hidden from view files (under Linux only).

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
If you can't, simply use the delete function on these files without seeing it (for example "dele .htaccess", or "del .htaccess" in some programs...)

Joined: Dec 2001
Posts: 699
Member
Member
Offline
Joined: Dec 2001
Posts: 699
Just a note to people who don't know - you need to use the Apache web server for this to work (although most do).


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
isaac
isaac
California
Posts: 1,157
Joined: July 2001
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)