Bitcoin Forum
March 28, 2024, 11:48:15 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [TUTORIAL] How to password protect your LKETC or any miner webpage?  (Read 2038 times)
Versatile (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile WWW
June 12, 2014, 08:20:33 PM
 #1

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:
<?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 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
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711669695
Hero Member
*
Offline Offline

Posts: 1711669695

View Profile Personal Message (Offline)

Ignore
1711669695
Reply with quote  #2

1711669695
Report to moderator
1711669695
Hero Member
*
Offline Offline

Posts: 1711669695

View Profile Personal Message (Offline)

Ignore
1711669695
Reply with quote  #2

1711669695
Report to moderator
Server0123
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
October 15, 2014, 05:02:38 PM
 #2

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?
goozman96
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
October 16, 2014, 05:12:26 AM
 #3

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.

BTC: 19DKtsdGfQyFzNiEze9KuFQrWGiLDvg6F1 | LTC: LbV6UGyjYbVP49NvQFmuAnkADcaFYvNagK | NMC: NDCdMJmTmGH54Cezmo3CwSxAC7grAoZJbj
Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000


https://gliph.me/hUF


View Profile
October 16, 2014, 05:42:50 AM
Last edit: October 16, 2014, 07:00:11 AM by Newar
 #4

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

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
goozman96
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
October 16, 2014, 04:35:09 PM
 #5

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..

BTC: 19DKtsdGfQyFzNiEze9KuFQrWGiLDvg6F1 | LTC: LbV6UGyjYbVP49NvQFmuAnkADcaFYvNagK | NMC: NDCdMJmTmGH54Cezmo3CwSxAC7grAoZJbj
Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000


https://gliph.me/hUF


View Profile
October 17, 2014, 01:54:00 PM
 #6


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

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
goozman96
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
October 18, 2014, 12:16:10 AM
 #7


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

BTC: 19DKtsdGfQyFzNiEze9KuFQrWGiLDvg6F1 | LTC: LbV6UGyjYbVP49NvQFmuAnkADcaFYvNagK | NMC: NDCdMJmTmGH54Cezmo3CwSxAC7grAoZJbj
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!