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

  • Home
  • SEARCH
  • 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 1068695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:19:12+00:00 2026-05-16T20:19:12+00:00

Im building a simple web app in Python using web.py – and was wondering

  • 0

Im building a simple web app in Python using web.py – and was wondering what best practices are in terms of securing the application.

I had two main questions at this stage:

  1. I want the application to be able
    to send email – its not hosted on
    GAE, but I thought a simple
    solutions might be to write / find a
    s script that is able to send
    pop/imap mail, and use a gmail
    account. This would require me to
    save the login and password in the
    script, in plaintext. This seems
    wrong and very insecure – I wonder
    what is the better way to do this?

  2. The webapp needs a sqlite db,
    which out of the box do not provide
    any security. How can i ensure that
    people just cant download the whole
    database file?

I imagine both of the questions above come down to file structure and permissioning – i havent been able to find a rigorous tutorial, and really curious to how people typically go about structuring webapps?

Many thanks

  • 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-16T20:19:12+00:00Added an answer on May 16, 2026 at 8:19 pm

    Obviously there must not be any direct access to the file system via an HTTP request.

    And I’m pretty sure that’s impossible if you’re using web.py anyway. When you create an application using web.py, you create a list of regular expressions for URLs which map to a class to send the request to. As long as every request to your web server gets sent to web.py, then you shouldn’t have any issues, as everything is white-listed by this URL list.

    http://webpy.org/tutorial3.en#urlhandling

    Because of that fact I wouldn’t worry about storing passwords in config files or source-code too much.

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

Sidebar

Related Questions

I'm building a web app to design and animate simple 3d scenes using the
I'm building a simple web application in tornado.web using mongodb as the backend. 90%
I am building a simple installer for a web application using Wix. I wish
I'm building web app that needs to communicate with another application using socket connections.
I'm building a simple web based forum application. I want to allow users to
I am currently building a very small/simple web application in ASP.NET MVC with ADO.NET
I am building a web application on Google App Engine that requires users to
I'm currently building a simple web application in PHP that other company's can use
I'm building a relatively simple web-app where the main servlet implements the ServletContextListener interface
I'm building a simple game in an ASP.NET/VB.NET web app. The game has a

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.