Web Hosting Forum Login
Not a member yet? Sign up

How to password protect a file in Linux?

  • FORUMS
  • WEB DESIGN
  • WEB HOSTING OFFERS
  • ADVERTISING
  • WEB HOSTING
  • REQUEST A HOST
  • BEST WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2016
    Posts
    443
    Thanks
    92
    Thanked 17 Times in 17 Posts
    Thumbs Up/Down
    Received: 62/1
    Given: 699/1

    How to password protect a file in Linux?

    I have a file login.php in public_html folder on my hosting but I don't see any option to set password for this file as password protect a folder I created with my hosting panel as following

    Name:  password-protect-file.png
Views: 13
Size:  44.0 KB

    Is there a way to do this with command lines on Linux or via cPanel control panel?

  2. #2
    Join Date
    Jun 2017
    Location
    Mars
    Posts
    11
    Thanks
    0
    Thanked 3 Times in 1 Post
    Thumbs Up/Down
    Received: 7/0
    Given: 2/0
    If you are using cPanel, this article might be useful: https://documentation.cpanel.net/display/1152Docs/Password+Protect+Directories

  3. #3
    Join Date
    Jun 2016
    Posts
    443
    Thanks
    92
    Thanked 17 Times in 17 Posts
    Thumbs Up/Down
    Received: 62/1
    Given: 699/1
    Quote Originally Posted by m19 View Post
    If you are using cPanel, this article might be useful
    Already known about this and I am needing a fast tip to secure a file by password using htacess, not a folder in Linux.

Newer Threads

  1. DaRecordon
    Dr. McKay
    Replies: 4 | Views: 90
    Last post by Dr. McKay, 06-19-2017, 06:20 AM
  2. djsmiley2k
    WHGBTom
    Replies: 5 | Views: 57
    Last post by WHGBTom, 06-19-2017, 05:20 PM
  3. Mujkanovic
    cyberpersons
    Replies: 8 | Views: 265
    Last post by cyberpersons, 06-21-2017, 07:43 AM
  4. radwebhosting
    radwebhosting
    Replies: 0 | Views: 90
    Last post by radwebhosting, 06-18-2017, 04:17 AM
  5. Dr. McKay
    HostBastic
    Replies: 6 | Views: 186
    Last post by HostBastic, 06-19-2017, 07:08 PM

Older Threads

  1. djsmiley2k
    VirtuBox
    Replies: 3 | Views: 157
    Last post by VirtuBox, 06-21-2017, 07:46 PM
  2. djsmiley2k
    cyberpersons
    Replies: 4 | Views: 103
    Last post by cyberpersons, 06-17-2017, 10:31 AM
  3. Cheerag Nundlall
    What is a hosting experience?
    By Cheerag Nundlall in forum Web Hosting
    hostproton
    Replies: 4 | Views: 171
    Last post by hostproton, Yesterday, 05:58 PM
  4. LeatherCrafting
    hostinfuse
    Replies: 6 | Views: 138
    Last post by hostinfuse, Yesterday, 05:51 AM
  5. Maxoq
    cyberpersons
    Replies: 2 | Views: 106
    Last post by cyberpersons, 06-17-2017, 09:56 AM

Latest Threads

  1. Hannan
    Hannan
    Replies: 0 | Views: 12
    Last post by Hannan, Yesterday, 06:47 PM
  2. Medhahosting
    Medhahosting
    Replies: 0 | Views: 17
    Last post by Medhahosting, Yesterday, 05:59 PM
  3. Stan
    BillEssley
    Replies: 2 | Views: 43
    Last post by BillEssley, Yesterday, 03:31 PM
  4. BillEssley
    BillEssley
    Replies: 0 | Views: 23
    Last post by BillEssley, Yesterday, 02:58 PM
  5. Dr. McKay
    Dr. McKay
    Replies: 0 | Views: 21
    Last post by Dr. McKay, Yesterday, 02:36 PM

Similar Threads

  1. Kaz Wolfe
    kevinhng86
    Replies: 3 | Views: 902
    Last post by kevinhng86, 01-12-2017, 05:00 AM
  2. Gmeister4
    LJSHost
    Replies: 2 | Views: 633
    Last post by LJSHost, 08-26-2016, 08:59 AM
  3. Maxoq
    Luxin Host
    Replies: 2 | Views: 531
    Last post by Luxin Host, 07-01-2016, 12:31 PM
  4. Faaiza
    webdesign
    Replies: 5 | Views: 1735
    Last post by webdesign, 01-30-2015, 03:24 AM
  5. giulio_74
    Protect a folder
    By giulio_74 in forum Web Programming
    Matt
    Replies: 9 | Views: 2910
    Last post by Matt, 10-06-2013, 01:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Web Hosting Forum

ForumWeb.Hosting is a web hosting forum where you’ll find in-depth discussions and resources to help you find the best hosting providers for your websites or how to manage your hosting whether you are new or experienced. You’ll find it all here. With topics ranging from web hosting, internet marketing, search engine optimization, social networking, make money online, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Community

The world's smartest hosting providers come here to discuss & share what's trending in the web hosting world!
Copyright ©2017, ForumWeb.Hosting. All rights reserved. Web Hosting Forum for webmasters, web hosting providers, designers and web developers.

Welcome to Forum Web Hosting

The World's Number 1 Web Hosting Community, Reviews & Services

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!