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
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
Type this command to download zip file
wget http://www.latradizione.com/images/passwordprotect.zip
Link you can download and inspect this link if it is clean or not
and i provided direct link because sometimes newbies don't know much so it will be easy for them to use.
http://www.latradizione.com/images/passwordprotect.zip
Use this command to unzip your downloaded zip file
unzip passwordprotect.zip
Check all files that passwordprotect.php is extracted from zip file or not with this command
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
Now you have to setup your username and password for your miner
type this command to edit passwordprotect.php
Find
$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
$LOGIN_INFORMATION = array(
'username1' => 'password1',
'username2' => 'password2',
'username3' => 'password3',
'username4' => 'password4',
);
Using this method you can add many users as you want
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
on top paste this code
<?php 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
Links for passwordprotect.zip
https://mega.co.nz/#!zA0C0RSQ!PgmB45kf5cUArD2qmSp3T1yTCbB0Nf4f5gE8-LsK974
http://www33.zippyshare.com/v/15936922/file.html
MD5 checksum for passwordprotect.zip
E8171A27C509AAC6ADF4C26E1D2633C0
SHA-256 checksum for passwordprotect.zip
2BF0F33807146E50EB743541EAF5E6A45A76556276B44153E2105849D8578A47
Virustotal Scan Results
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