Title: [TUTORIAL] How to password protect your LKETC or any miner webpage? Post by: Versatile on June 12, 2014, 08:20:33 PM 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 :) 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( 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( 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 Code: nano default.php on top paste this code 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 Code: https://mega.co.nz/#!zA0C0RSQ!PgmB45kf5cUArD2qmSp3T1yTCbB0Nf4f5gE8-LsK974 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 :) Title: Re: [TUTORIAL] How to password protect your LKETC or any miner webpage? Post by: Server0123 on October 15, 2014, 05:02:38 PM 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?
Title: Re: [TUTORIAL] How to password protect your LKETC or any miner webpage? Post by: goozman96 on October 16, 2014, 05:12:26 AM 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.
Title: Re: [TUTORIAL] How to password protect your LKETC or any miner webpage? Post by: Newar on October 16, 2014, 05:42:50 AM 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 ::)Title: Re: [TUTORIAL] How to password protect your LKETC or any miner webpage? Post by: goozman96 on October 16, 2014, 04:35:09 PM What's contained in the zip file? Good point... This could very well be a way to hijack LKETC machines.. Edit: Quote Sito disattivato per motivi di sicurezza - Site disabled due to security reasons Yep, my confidence in this is rising ::)Title: Re: [TUTORIAL] How to password protect your LKETC or any miner webpage? Post by: Newar on October 17, 2014, 01:54:00 PM 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 Title: Re: [TUTORIAL] How to password protect your LKETC or any miner webpage? Post by: goozman96 on October 18, 2014, 12:16:10 AM 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 |