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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:12:34+00:00 2026-06-17T22:12:34+00:00

I am looking for a lib that lets me roughly: connect to localhost:port, but

  • 0

I am looking for a lib that lets me roughly:

  • connect to localhost:port, but see http://somesite.com
  • rewrite all static assets to point to localhost:port instead of somesite.com
  • support cookies / authentication

i know that http://betterinternet.co/ does this already, but they wont give me their source code for some reason.

I assume this doesnt exist as free code, so if i were to write one, are there any nuances to it? If i replace all occurrences of somesite.com in html and headers, will that be enough?

  • 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-17T22:12:35+00:00Added an answer on June 17, 2026 at 10:12 pm

    I don’t see any straight forward solution to your problem. If I’ve understood correctly, you want a caching HTTP proxy which serves static contents locally, with URL rewriting rules defined in Python (or nodejs). That’s quite a task.

    A caching HTTP proxy implementation is not trivial. So I’d use an existing implementation, such as Squid (or Apache if it does caching too).

    You could then place a (relatively) simple HTTP server written in Python in front of that (e.g. based on BaseHTTPServer and urllib2) which performs the URL rewriting as you want them and forwards the requests to the proxy (or direct to internet).

    The idea would be to rely on the proxy setup to perform all the processing you don’t want to modify (including basic rewrite rules, authentication, caching and cache management) and limit your front-end implementation to performing only the custom rewriting you are interested in.

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

Sidebar

Related Questions

Is there a lib that can build a simple GUI by looking at a
I'm looking for a php lib that allows me to compile sql strings in
I have a project that we are looking to port from Visual studio 6
I am now looking for a lib that can change the color effect. Though
Im looking for a Java lib that can read *.dif files saved from Excel
I'm looking for a Java lib that permits to do some fast computations with
I'm looking for a simple c/c++ lib that would allow to extract the first
I am looking for a simple zip library (prefers without dll/lib) that will have
I'm looking at the Dropbox SDK for the Ruby platform http://www.dropbox.com/developers/start/setup#ruby , trying to
I'm looking for a lib that would implement something similar to std::map and multimap,

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.