Author

Topic: [TUTORIAL] How to password protect your LKETC or any miner webpage? (Read 2065 times)

hero member
Activity: 728
Merit: 500

Doesn't seem to hard to do, without the need to download anything. Sure, it's not a perfect solution, but for protecting the miner website this should do: http://www.thesitewizard.com/apache/password-protect-directory.shtml
That looks a bit more trustworthy than what OP has posted. Thanks for the resource. Smiley
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF

Doesn't seem to hard to do, without the need to download anything. Sure, it's not a perfect solution, but for protecting the miner website this should do: http://www.thesitewizard.com/apache/password-protect-directory.shtml
hero member
Activity: 728
Merit: 500
What's contained in the zip file?

Edit:
Quote
Sito disattivato per motivi di sicurezza - Site disabled due to security reasons
Yep, my confidence in this is rising  Roll Eyes
Good point... This could very well be a way to hijack LKETC machines..
legendary
Activity: 1358
Merit: 1001
https://gliph.me/hUF
What's contained in the zip file?

Edit:
Quote
Sito disattivato per motivi di sicurezza - Site disabled due to security reasons
Yep, my confidence in this is rising  Roll Eyes
hero member
Activity: 728
Merit: 500
This is very useful, thanks. I wish that it was included by default since the majority of people probably won't take the time to go through this process.
newbie
Activity: 1
Merit: 0
Thanks for the Tutorial its great.  Unfortunately the link http://www.latradizione.com/images/passwordprotect.zip does not work. Any other way to get this file?
newbie
Activity: 14
Merit: 0
As you guys know LKETC miner don't have any password protection i am using LKETC so i protected my miner with username and password so no one can have access through network or any other way. For that you must have SSH access to your miner so you can edit your miner's webpage.

Tutorial about how to reset / reinstall miner on LKETC to get SSH access and to change index page
Code:
https://bitcointalk.org/index.php?topic=648730.0

Let's Start

Make sure everything is connected to network and internet is working

Login to your SSH
Go to your files directory with this command
Code:
cd /var/www

Type this command to download zip file
Code:
wget http://www.latradizione.com/images/passwordprotect.zip

Quote
Link you can download and inspect this link if it is clean or not Smiley and i provided direct link because sometimes newbies don't know much so it will be easy for them to use.
Code:
http://www.latradizione.com/images/passwordprotect.zip

Use this command to unzip your downloaded zip file
Code:
unzip passwordprotect.zip

Check all files that passwordprotect.php is extracted from zip file or not with this command
Code:
ls

as it is extracted now you can remove zip file as it's files are extracted to your drive or you can keep it as you wish
but who want's to remove zip file type this command
Code:
rm passwordprotect.zip

Now you have to setup your username and password for your miner
type this command to edit passwordprotect.php
Code:
nano passwordprotect.php

Find
Code:
$LOGIN_INFORMATION = array(
  'username' => 'password',
);

Replace username with your required login username for your miner and password with your required password for your miner when you are done press ctrl+x press y and save the file.

You can add more then 1 user account to login for that you can see this example
Code:
$LOGIN_INFORMATION = array(
  'username1' => 'password1',
  'username2' => 'password2',
  'username3' => 'password3',
  'username4' => 'password4',
);

Using this method you can add many users as you want Smiley

now edit your index (in my condition it is default.php as i changed my index file using tutorial provided above for LKETC)
Type this command
Code:
nano default.php

on top paste this code
Code:
include("passwordprotect.php"); ?>

Save your file using ctrl+x and now add this code using same method to all php files you have in your /var/www/ directory and they all will be password protected.

Remember all files must be in same directory of your web folder where your files are located which you are trying to password protect.

Note:- if direct link for passwordprotect.zip is not working you can download passwordprotect.zip from links below or just let me know and i will update direct link Smiley

Links for passwordprotect.zip
Code:
https://mega.co.nz/#!zA0C0RSQ!PgmB45kf5cUArD2qmSp3T1yTCbB0Nf4f5gE8-LsK974
http://www33.zippyshare.com/v/15936922/file.html

MD5 checksum for passwordprotect.zip
Code:
E8171A27C509AAC6ADF4C26E1D2633C0

SHA-256 checksum for passwordprotect.zip
Code:
2BF0F33807146E50EB743541EAF5E6A45A76556276B44153E2105849D8578A47

Virustotal Scan Results
Code:
https://www.virustotal.com/en/file/2bf0f33807146e50eb743541eaf5e6a45a76556276b44153e2105849d8578a47/analysis/1402604115/

Note:- i am not professional with writing tutorials so if there is anything missing or you are not able to understand just ping me and i will reply ASAP Smiley
Jump to: