vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   htaccess Protection for admincp & any dir (https://vborg.vbsupport.ru/showthread.php?t=105179)

Omranic 01-28-2006 09:12 PM

hey
I tried the code with error pages & Only the 401 error success & other not

So you may use it as 401 error & regarding to the User: Shuvo Pass: golpo
Take the following code:

PHP Code:

$index['public'] = $index['public']; 
$phpkd['username'] = "Shuvo";    // Here Is the User Name 
$phpkd['password'] = "golpo";    // Here Is The htaccess Password 

if(!$index['public']){ 
if(
$_SERVER['PHP_AUTH_USER'] != $phpkd['username'] || $_SERVER['PHP_AUTH_PW'] != $phpkd['password']){ 
Header("WWW-Authenticate: Basic realm=\"Highly Secured\""); 
Header("HTTP/1.0 401 Unauthorized");echo "<head><title>Unauthorized</title></head><body bgcolor='#000000'><center><br> 
<a href=\"../index.php\" style=\"text-decoration: none\" target=\"_blank\"> 
<font face=\"MS Sans Serif\" color=\"#FFFFFF\" size=\"8\"><b><br>Enter Here Only<br></b></a></body></html>"
;exit;}} 


Mudvayne 01-30-2006 08:09 AM

dont know the reason but its not working.. Asking for pass randomly.. :(

RFViet 01-30-2006 12:51 PM

Quote:

Originally Posted by SolidSnake@GTI
yes
its exactly as you said

If I have 2 admins then It doesn't work !!! :disappointed:

Mudvayne 01-31-2006 09:16 AM

Yaiiiiiiiiiiiiii.. i did it.. But with .httaccess..

try http://www.golpo.net/forum/admincp/index.php :D:D:D

Omranic 02-14-2006 05:29 AM

Quote:

Originally Posted by Shuvo
Yaiiiiiiiiiiiiii.. i did it.. But with .httaccess..

try http://www.golpo.net/forum/admincp/index.php :D:D:D

thats possible also

you can post it here, I think it will be usefull for some

JJH35 02-16-2006 10:30 PM

or you could have just used this for each folder
order allow,deny
allow from all
deny from ip1 , ip2, ip3, etc

Mudvayne 02-17-2006 02:59 AM

Quote:

Originally Posted by SolidSnake@GTI
you can post it here, I think it will be usefull for some

Sorry brother.. I'm bit late.. Its easy.. Hope someone might get help..

I did it with a online .htaccess password generator tools.. Well go to .htaccess pass generator site read the instruction.. Its too easy.. U just need to know ur admincp path.. & plz after process upload the .htaccess & .httpass file in admincp folder.. Dont upload it in root folder.. Otherwise entire forum 'll b password protected..

Hornstar 02-18-2006 05:37 AM

Is there a code to only allow certain IP's?

Mathiau 03-12-2006 04:02 AM

Quote:

Originally Posted by Shuvo
Sorry brother.. I'm bit late.. Its easy.. Hope someone might get help..

I did it with a online .htaccess password generator tools.. Well go to .htaccess pass generator site read the instruction.. Its too easy.. U just need to know ur admincp path.. & plz after process upload the .htaccess & .httpass file in admincp folder.. Dont upload it in root folder.. Otherwise entire forum 'll b password protected..

I tried those tools. generated the info, uploaded the files in ASCII and i know the info was right i was typing in, it was in the right directory, but it justkept popping up as if i was putting in the wrong login info - but i know i wasnt...


For this hack - i put the code into my index.php (main root index.php) and it works - Is this as secure as using a seperate .htaccess file? if so then it works great and i would like to use it.

I tested it and put in the wrong info to get the enter here onl page, once i hit that the login window that comes up has this info in it

Quote:

Htaccess login system for **********! If you have a problem with the htaccess or you never recieved a email about the change in the htaccess pass, email me @ ******@wwwsupersite.com and I will help where I can. Thanks!
Where can i edit that? that certainly is not the host of our servers info so wondering where that is coded.... (i asked the host and he has no idea where that info would be pulled from...)

Mudvayne 03-12-2006 04:29 AM

Quote:

Originally Posted by Mathiau
I tried those tools. generated the info, uploaded the files in ASCII and i know the info was right i was typing in, it was in the right directory, but it justkept popping up as if i was putting in the wrong login info - but i know i wasnt...

But bro.. Mine works fine.. here is some info..

http://www.vbulletin.com/forum/admincp
http://www.golpo.net/forum/admincp

http://www.vbulletin.com/forum/modcp
http://www.golpo.net/forum/modcp

http://www.vbulletin.com/forum/includes
http://www.golpo.net/forum/includes

http://www.vbulletin.com/forum/install
http://www.golpo.net/forum/install

:).. So I prefer .htaccess.. Newayz did u upload the .htaccess & .htpasswd in the right directory? If so thn it should work.. Did u use the encoded pass in .htpasswd ?


All times are GMT. The time now is 04:51 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.02531 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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