vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - admincp: Extra Security (htaccess) (https://vborg.vbsupport.ru/showthread.php?t=232257)

Alecsmith 01-05-2010 06:32 PM

Working thanks :)

Eric 01-05-2010 08:11 PM

No need for a file edit for the admincp

There is a hook that could be used ;)

PHP Code:

($hook vBulletinHook::fetch_hook('admin_global')) ? eval($hook) : false


HolyKiller 01-05-2010 10:59 PM

Quote:

Originally Posted by akee (Post 1947959)
If I have more then 1 administrator?
I have 3 admin.

HERE ya go ;)

Marv 01-06-2010 12:06 PM

Cool :) Good addition; HolyKiller !

steve1966 01-06-2010 01:29 PM

Quote:

Originally Posted by SecondV (Post 1948178)
No need for a file edit for the admincp

There is a hook that could be used ;)

PHP Code:

($hook vBulletinHook::fetch_hook('admin_global')) ? eval($hook) : false


sorry for my bad but how do we use the hook?

also will this mod work if i have changed my admincp name?

thanks

cnutter 01-06-2010 04:39 PM

Another easy way to do this is just create two files one called .htaccess one called .htpasswd

In .htaccess put the following:

AuthName "Password Required"
AuthType Basic
AuthUserFile /home/forums/.htpasswd <-- path to passwd file
AuthGroupFile /dev/null

require user JohnDoe <-- this is the user that will have access (case sensitive)
require user JohnDoe2 <-- Add as many as users as you need using this format.

in the .htpasswd file put the user name and the encrypted paswd in this format:
JohnDoe:XPHPiphsU8rkM <--- examples only
JohnDoe2:PRrJjeFUT5ZWg

Use .htaccess / .htpasswd will give you a two step login that offers server side protect.

Here is a link to a great how to on this plus it offers a tool for creating the encrypted passwords.

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

HolyKiller 01-07-2010 10:18 AM

Quote:

Originally Posted by cnutter (Post 1948924)
Another easy way to do this is just create two files one called .htaccess one called .htpasswd

...

Yep, like i did :)

HERE

cnutter 01-07-2010 12:02 PM

Quote:

Originally Posted by HolyKiller (Post 1949448)
Yep, like i did :)

HERE

Yep like you did there. Didn't see that one thanx for the link. It should be pointed out in this thread at least that .htaccess/.htpasswd can and should be used to protect both the admincp and the modcp. You should also change the names of these area for added security though security though Obscurity isn't really security. Man can you say that one three times really fast? I can't. :)

darkdevilz 02-08-2010 08:22 PM

Another methos is;

find first and foremost
<?php

and add this to under

PHP Code:

$ourLogin "username";  
$ourPassword "password";  


session_start();  

if (
$_SESSION['login']!=$ourLogin && $_SESSION['password']!=$ourPassword) {  


if (
$_POST['login']==$ourLogin && $_POST['password']==$ourPassword) {  


$_SESSION['login'] = $_POST['login'];  
$_SESSION['password'] = $_POST['password'];  
header("Location: index.php");  


}  
else {  


echo 
"  
<form action=index.php method=post>  

<center><b>Are you sure to login ?</b></center>
<br>
<br>


Giris Ismi:<br>  
<input type=text name=login value=********><br>  

Giris Kodu:<br>  
<input type=password name=password value=********><br>  

<input type=submit value=' Login '>  


</form>  
"
;  

exit;  

}  




synseal 02-19-2011 04:12 AM

Very hand to have, thanks.


All times are GMT. The time now is 01:46 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.01166 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete