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 6581453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:09:18+00:00 2026-05-25T16:09:18+00:00

Is there a way to restrict access to a specific webpage such as http://www.example.com/subpage

  • 0

Is there a way to restrict access to a specific webpage such as http://www.example.com/subpage with jQuery?
I know there are many other feasible ways to accomplish that via PHP and .htaccess but in our case, we don’t have access to the .htaccess file. However jQuery is installed.

I was thinking to try to read the window.location.href and add a hash to the URL. But I am not sure if this can be exposed if a user view the source code of the page in question.

  • 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-05-25T16:09:19+00:00Added an answer on May 25, 2026 at 4:09 pm

    I implemented Felix Kling’s idea and wrote a node.js script to automate the process. Basically it takes your (original) HTML page and a password as input, and generates an HTML page that embeds an encrypted copy of the original one. When you browse to this generated HTML page, it prompts you for a password to unlock it.

    This is just a proof of concept, so there’s a lot you would have to do to make this production-ready. You’d definitely want some friendly error messages if you put in the wrong password, for example. And it would probably be really irritating to enter the password every time you move between pages on the site, so you might consider saving the password in a cookie or passing it along in the URL every time. Also, as currently designed you can only have one password that everyone shares. This is a solvable problem, just re-encrypt the main key once for each unique username/password pair and put all that data right in the web page.

    Anyway, here’s a demo (the password is “ItWorks”). I put the code for the tool on GitHub.

    There are lots of reasons why this approach is not particularly secure, but if you really cared about security you’d pony up for web hosting with .htaccess and script support, right? 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know if there is any way to restrict access to the remote
Is there any way to restrict users with administrative privileges from managing specific Windows
Is there a way to restrict a specific SQL 2005 login on a Microsoft
Is there a way to restrict certain tables from the mysqldump command? For example,
Is there any way to restrict access to my (.NET) web service without modifying
is there a way to restrict access to a website, running Apache via cPanel,
Is there a way to restrict what I see when I select the View
In Haskell, is there a way to restrict a monad M a so that
This might be simple or impossible ;-) Is there a way to restrict the
Sorry for this silly question, but is there any way to restrict using directives

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.