The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
htaccess Protection for admincp & any dir Details »» | |||||||||||||||||||||||||||
htaccess Protection for admincp & any dir
Developer Last Online: Sep 2021
this is a very simple hack
its only main function is to add htaccess protection for any dir by adding some small lines in the begining of Dir's index our application will be on admincp's index (index.php) Description: This hack will add htaccess protection to any folder by adding small lines in its index.php file & the user name & password for this protection is determined by two varables in the same file & if the data entered was wrong, the page will give a black background with a title (Unauthorized) & a content says (Enter Here Only) when clicking it, it will direct to forum's root (index.php by default), this means douple security (likes Look THIS. Please Note: The Default User Name & Paaaword for entering through this Protection Is (User: 123 / Pass: 321) See the last two line to know how to change this values installation: open the file index.php present in the dir admincp & search for the following code: PHP Code:
PHP Code:
Note 1: change the values of the two variables $phpkd['username'] / $phpkd['password'] to the username & password needed & note not to change this $index['public'] = $index['public']; Note 2: This Protection Gives the authority for entering to onnly the username & passord defined in the file (above modification) & after passing through this htaccess protection you will find the Normal vbulletin admincp login screen & then you can go with the normal admin data recorded in the forum itself. Hope I have explained enough for beginners. Show Your Support
|
Comments |
#22
|
||||
|
||||
Quote:
|
#23
|
||||
|
||||
sounds its nice & help to make acp more secure
kliked install. |
#24
|
||||
|
||||
Quote:
Find out more about .htaccess and mod_auth_mysql here: http://www.widexl.com/scripts/docume...tml#auth_mysql |
#25
|
||||
|
||||
Quote:
But what about Servers That Hasn't mod_auth_mysql Module Istalled & have not SSH Access & not having intense to install any modules ? Is there Any Way ? |
#26
|
||||
|
||||
is it possible to do it as same as vb.com? plzzzzzzzzzzzzzzzzzzzzzzzzz.. I meant it 'll load a error page named authentication faild.. Like...
You hav failed to authenticate ur identity.. U r now autometically redirect to forum index.. /me clicks install P.S: I'm using vB 3.5.3.. It seems not working :ermm: |
#27
|
|||
|
|||
nice!!!
installed! |
#28
|
||||
|
||||
Quote:
Quote:
Code:
ErrorDocument 401 /401.html If you choose to create a directory for your custom apache errorpages like errorpages in your document_root the line has to look like this Code:
ErrorDocument 401 /errorpages/401.html Code:
ErrorDocument 401 /errorpages/401.php You can create custom errorpages for every http-errorcode like 404 (not found), 500 (script error) and so on... |
#29
|
||||
|
||||
Dear j.jacobsen..
Thnx for the solution.. As I use Custom HTML Error Page hack I allready hav the error page.. So I just need to change the code.. PHP Code:
Hav anybody try it successfully in vB 3.5.3? Coz mine isn't working .. |
#30
|
||||
|
||||
Quote:
its a server side work depends on your apache You Must observe that the Default value (User: 123 / Pass: 321) & Not as recorded in the database & this has been mentioned in the thread's first post regarding to changing the error page to error 500 you must change the following line HTTP/1.0 401 Unauthorized & it will do that for you any questions I'm here For answers best wishes |
#31
|
||||
|
||||
Okiz SolidSnake@GTI I hav a question.. I'm a really dumb abt this coding thing.. So I'll b glad if u help me out.. If I wanna use..
User: Shuvo Pass: golpo & call 500/501 error page.. Thn what 'll the xact code? Would u plz write it for me here? Plz.. Note: Sorry my english |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|