title: How can I make my website inaccessible using python
body: <p>so I've created a website using html and a code in python that redirects to it if you have the password and username correct(blank is a substitute for private info):</p>
  <pre><code>import time
  import webbrowser
  print(&quot;To access the website Enter your username and password bellow&quot;)
  x=input(&quot;Username:&quot;)
  y=input(&quot;Password:&quot;)
  if x==&quot;dsafro9156&quot; and y==&quot;D24$m?!tdy&quot;:
      print(&quot;Access granted rederecting you to the website&quot;)
      time.sleep(1)
      webbrowser.open('nasa.gov')
  else:
      while x!=&quot;dsafro9156&quot; and y!=&quot;D24$m?!tdy&quot;:
          print(&quot;Access denied. Please try again&quot;)
          print(&quot;                &quot;)
          print(&quot;-------------------------------------------------------&quot;)
          print(&quot;                       &quot;)
          x=input(&quot;Username:&quot;)
          y=input(&quot;Password:&quot;)
          if x==&quot;dsafro9156&quot; and y==&quot;D24$m?!tdy&quot;:
              print(&quot;Access granted rederecting you to the website&quot;)
              time.sleep(1)
              webbrowser.open('nasa.gov')
  
      
  </code></pre>
  <p>is there any way I can make the website inaccessible? I'm not looking for hackerproof stuff just something to make sure you couldn't just bookmark the tab but actually had to log in.</p>