Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2002, 08:09 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Other admin passw

i don't now if this exist...but how will be to do a general admin passw. For exemple when i go to admin i will must to insert 2 passw. My forum passw & a general admin passw. Nice ?
Reply With Quote
  #2  
Old 05-10-2002, 10:48 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do you need such a feature? If you need to secure your password simply use a complex password like "Q5yb53jyh32" which is impossible to crack. If someone is able to pass this password, he can pass two different passwords either..
Reply With Quote
  #3  
Old 05-10-2002, 08:24 PM
PET's Avatar
PET PET is offline
 
Join Date: Jan 2002
Location: Timisoara/Romania
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes...but maybee i don't want to always paste the pass...i mean...it is dificoult to remember such a passw
Reply With Quote
  #4  
Old 05-10-2002, 11:07 PM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I think you are trying to say you want two levels of protection on your Admin CP.

You want a forum password to do general stuff, ie. open/close posts, move threads etc - And another one to access your Admin CP.

Am I right so far?

OK, well, thats what I have done on my forum, to access my Admin CP, you must give it the Admin CP password and my forum password. If any failed attempt is made to access my Admin CP, an email is sent to me with the person's IP address.

OK, now, this can all be done with .htaccess. But I need more info on your server, you using Windows 2000 or Linux? And do you have access to CPanel or something like that? - If you do it will be a lot easier...
Reply With Quote
  #5  
Old 05-11-2002, 08:33 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds cool DWZ...

Would you tell us how to do it?

Satan
Reply With Quote
  #6  
Old 05-11-2002, 11:02 PM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by hellsatan
Sounds cool DWZ...

Would you tell us how to do it?

Satan
OK, I'll tell you the long way, that way it wont matter if you have CPanel or anything

Open up a text document, name it stuff.htpasswd don't put a .txt or anything at the end...

In that, put in:
Code:
Username:EncryptedPassword
Username2:TheirEncryptedPassword
The password you put in there must be encrypted, if you have no idea what your password is encrypted, this web site will tell you what you need: http://www.euronet.nl/~arnow/htpasswd/

OK, save that file. Now you need to upload it via FTP to your server, but don't put it in a web accessible directory, for example, mine is stored in /home/dwz/.htpasswds/forums/admin make sure you remember where you save it Now, once it is uploaded, rename the file to .htpasswd make sure you do this via FTP. Do not try to rename the file in windows then try and upload it... Windows gets confused on files without filenames...

Now, make another, this time called stuff.htaccess in this file, put this:
Code:
AuthType Basic
AuthName "vB Administrator Control Panel"
AuthUserFile /home/dwz/.htpasswds/forums/admin/passwd

require valid-user

ErrorDocument 401 /error/401.php
Now, you will need to replace /home/dwz/.htpasswds/forums/admin/passwd with the folder you ended up saving your .htpasswd on your web server.

OK, getting close to finished now Upload this file to your vB admin CP directory (i.e. /forum/admin). Once uploaded, rename this file to .htaccess Again, do not try and do this in Windows.

OK, now, you should have password protection on your admin cp. When you try and go to your vB admin CP, you should get a box like this: http://bruce-hamilton.com/tmp/ Here, type in the info you placed in the .htpasswd file unencrypted. You can save the password on your computer too if you like. Click OK and you should be taken to the normal vB admin CP login page if you aren't logged in. Or right to the vB admin CP if you are.

OK, well, password protection is set up. Last few steps... Make a web page that you want displayed to people who type the password in wrong. Feel free to use my one, just don't link the images to my site, save a copy and use your space :
PHP Code:
<html><title>ERROR: 401 - Authorization Required - ACCESS DENIED</title><body bgcolor="#000000"><div align=center>
<img src="http://www.consoleradar.com/error/error.gif"><br><img src="http://www.consoleradar.com/error/401.gif"><br><p align="centre"><font color="7D7979"><h1>Authorization Required - ACCESS DENIED</h1>
<h2>Unauthorized access to ConsoleRadar's administration sections detected.<br>What the [better wash my mouth][better wash my mouth][better wash my mouth][better wash my mouth] do you think you're doing?</h2>
An illegal attempt to access our system has been detected from your IP address (<? echo($REMOTE_ADDR); ?> aka <? echo(gethostbyaddr($REMOTE_ADDR)); ?>). 
This information has been sent to the webmaster and any further attempts to access our system will result in legal action.</html>

<?php

$email 
"you@youremail.com.au";
$time date "Y-m-d-r" );

$message "

-- message starts-----

This sad, sad person: \n " 
gethostbyaddr($REMOTE_ADDR) . " \n Has attempted to access \n $HTTP_REFERER \n Now Go and kick his ass

Site: 
$refer

Date: 
$time
-- message ends-----

"
;

mail($email,"ERROR 403!",
     
$message"From:SERVER<server@yourdomain.com>");

?>
OK, replace $email = "you@youremail.com.au"; above with the email address you want the IP address sent to and replace server@yourdomain.com for your web site's domain (it doesn't have to be a real email address, that's just the email's return address. Save this as 401.php and upload it to a folder just outside the root of your site called /error/ You don't need to put it there, but it's where I store all my error documents. If you want to have it somewhere else, make sure you change it in the .htaccess file too. Note that you can't put it in a folder that needs a password (like your vB admin CP, or you will need to have a password to access the "you need a password" file )

And your done.

Enjoy
Reply With Quote
  #7  
Old 07-07-2002, 01:25 PM
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could really do with some help here, I have followed all the above instructions and created an encrypted password using the link you gave. I get the box asking me for a password i type in the unencrypted password it brings up the box again and after 3 attempts i get the error message. I have removed the 2 files now so i have access again to my CP. any idea's where i am going wrong?
Reply With Quote
  #8  
Old 07-07-2002, 01:57 PM
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i fixed it. Thanks

phil
Reply With Quote
  #9  
Old 07-07-2002, 02:23 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How did you fix it?

Satan
Reply With Quote
  #10  
Old 07-07-2002, 02:49 PM
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i reinstalled both files in the same directory /admin and added /.htpasswd to the location in .htaccess

I hope the above helps.

Phil
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.14257 seconds
  • Memory Usage 2,267KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete