Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8509319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:24:08+00:00 2026-06-11T03:24:08+00:00

Please guide me accordingly if this question is noobish or a kind of duplicate.

  • 0

Please guide me accordingly if this question is noobish or a kind of duplicate.

I am wondering how to implement this kind of authentication?

enter image description here

I am asking because I’m quite lost and doesn’t know which keywords to search for this. On my mind, I am planning to have this whenever a user wants to access my domain (eg. http://mysite.com and http://mysite.com/tools).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:24:10+00:00Added an answer on June 11, 2026 at 3:24 am

    The keywords you are looking for are: htaccess, htpasswd, .htaccess.
    (Providing you use apache)

    Ultimately you will put a .htaccess file in the dir you want to protect, and let it check the requirements with your htpasswdfile.

    For example: on my server I don’t want people seeing my private directory.

    $ sudo htpasswd -c /etc/apache2/.htpasswd benjamin
    

    Note that benjamin in the command above ^ is the username which we will use to log in.

    We’d like the .htpasswd file outside our webfolder for some security.

    Then in my private dir I’d put a .htaccess file that contains this:

    AuthUserFile /etc/apache2/.htpasswd
    AuthGroupFile /dev/null
    AuthName Authenticate
    AuthType Basic
    require user benjamin
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please guide what is meaning by Web is stateless in simple words ? Kindly
please guide if any body knows how to create a Enum class's object in
Can some one please guide me to understand which jar file i need to
Can you please guide me what is session and session variables? I don't need
I am facing some problems for using placement new for contiguous memory.Please guide me,
i'm working on asp.net web application. please guide me for url rewriting in asp.net:
Is there any garbage collector concept available in iOS?if yes please guide us how
I want to set my Django/mysql site to work with UTF-8. Please guide me
Please recommend some websites with a quick guide. MSDN is good but it's hard
i am struggling with IPV6 programing please help me or guide to me to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.