A fork of the polipo HTTP proxy that uses namecoind for lookups
C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore Add basic .gitignore file. Jan 12, 2011
CHANGES Update CHANGES. Mar 25, 2011
COPYING Update copyright date. Jan 8, 2008
INSTALL Add pointer to README.Windows. Sep 5, 2006
Makefile Implement simple namecoind support Apr 27, 2011
README.Windows Modify the Windows instructions to generate a file with extension .exe. Nov 16, 2006
README.md Apparently you couldn't read the original README 'here' Apr 27, 2011
README.original Update README with namecoin details Apr 27, 2011
atom.c Make atom refcounts 32 bit long. Sep 15, 2007
atom.h Make atom refcounts 32 bit long. Sep 15, 2007
auth.c Update copyright notices. May 21, 2006
auth.h Update copyright notices. May 21, 2006
chunk.c change from MINGW to WIN32 Jan 12, 2011
chunk.h Remove non-portable #warn directive. Sep 7, 2008
client.c Clean up chunk locking for httpServeChunk. The interface is changed, … Jan 12, 2011
client.h Update copyright notices. May 21, 2006
config.c avoid NULL-dereference upon malloc failure Jan 19, 2011
config.h Implement CONFIG_PASSWORD. Sep 6, 2006
config.sample Implement new option to set Cache-Control: no-transform on all requests. May 23, 2009
diskcache.c Change the default value of diskCacheWriteoutOnClose to 64kB. Jan 12, 2011
diskcache.h Remove support for non-writable disk cache entries. Jan 12, 2011
dns.c Implement simple namecoind support Apr 27, 2011
dns.h Update copyright notices. May 21, 2006
event.c Flawed logic in timeval_minus Jan 12, 2011
event.h Prototype refinements. Nov 20, 2006
forbidden.c Add support for forbidden tunnels. Mar 25, 2011
forbidden.h Add support for forbidden tunnels. Mar 25, 2011
forbidden.sample Add comment to forbidden.sample. Nov 26, 2006
fts_compat.c change from MINGW to WIN32 Jan 12, 2011
fts_compat.h Add FTS_NSOK to fts_compat.h. Nov 13, 2006
ftsimport.c Define _GNU_SOURCE in import files. Nov 17, 2006
ftsimport.h Import polipo--devel--0--base-0. Jun 28, 2004
http.c Fix off-by-one in urlDecode. Mar 15, 2009
http.h Implemented maxConnectionAge and maxConnectionRequests. Apr 20, 2007
http_parse.c Simplify Cache-Control: parsing. Jan 12, 2011
http_parse.h Export atomContentType and atomContentEncoding. Dec 28, 2006
io.c change func from mingw_* to win32_* Jan 12, 2011
io.h Prototype refinements. Nov 20, 2006
local.c Add support for logging to syslog. Aug 10, 2007
local.h Implement disableConfiguration and disableIndexing. Sep 6, 2006
localindex.html Import polipo--devel--0--base-0. Jun 28, 2004
log.c Add support for forbidden tunnels. Mar 25, 2011
log.h Add support for forbidden tunnels. Mar 25, 2011
main.c Implement simple namecoind support Apr 27, 2011
md5.c Import polipo--devel--0--base-0. Jun 28, 2004
md5.h Import polipo--devel--0--base-0. Jun 28, 2004
md5import.c Define _GNU_SOURCE in import files. Nov 17, 2006
md5import.h Import polipo--devel--0--base-0. Jun 28, 2004
mingw.c change func from mingw_* to win32_* Jan 12, 2011
mingw.h change func from mingw_* to win32_* Jan 12, 2011
namecoind.c Make sure namecoin request has the correct content-length Dec 2, 2011
namecoind.h Implement simple namecoind support Apr 27, 2011
object.c Remove dead code in discardObjects. From Honglei Junan. Jan 12, 2011
object.h Make object keys NUL-terminated. May 20, 2008
parse_time.c Remove useless includes from parse_time.c. Nov 17, 2006
parse_time.h Update copyright notices. May 21, 2006
polipo.h Implement simple namecoind support Apr 27, 2011
polipo.man Tweaks to man page. Dec 12, 2006
polipo.texi Add support for forbidden tunnels. Mar 25, 2011
server.c Raise an error when a server drops the connection abruptly. Jan 12, 2011
server.h Move dontTrustVaryEtag to http.c. Dec 28, 2006
socks.c Fix resetting of socksParentProxy. Mar 15, 2009
socks.h Implement support for SOCKS4a parent proxies. May 21, 2006
tunnel.c Add support for forbidden tunnels. Mar 25, 2011
tunnel.h Add support for forbidden tunnels. Mar 25, 2011
util.c change from MINGW to WIN32 Jan 12, 2011
util.h Implement stub for physicalMemory. Oct 1, 2007

README.md

This is a fork of the Polipo caching web proxy. You can read the original README here.

This fork adds support for looking up domain names using Namecoin, the distributed P2P naming system based on Bitcoin.

It needs libjansson for JSON parsing and libcurl for talking to the namecoind JSON-RPC server.

Once compiled, you can run it passing it the details about the namecoind server:

$ git clone https://github.com/doublec/namecoin-polipo
$ cd namecoin-polipo
$ make
$ ./polipo namecoindServer="127.0.0.1:8332" namecoindUsername=rpcuser namecoindPassword=rpcpassword

This will start the proxy, and it'll connect to the namecoind JSON-RPC server with the given details. It runs 'name_scan' to get the list of names. Any program using this proxy will have all .bit domains resolved by namecoind. Currently it only supports mapping to IP addresses. So namecoind values like the following work: {"map":{"":"192.0.32.10"}}. As an example 'bluishcoder.bit' hopefully resolves to the IP address of my server with my weblog using this version of polipo. It rescans namecoind when a request is made for a domain lookup and the last scan was more than 10 minutes ago.

To use it with Firefox (or other browsers) go into the network settings and set the 'http proxy' to localhost, port 8123.

I decided to do this to avoid needing to run the ncproxy script that comes with namecoin since I don't need socks support. Comments, suggestions, patches are welcome.

Original README follows: --------------------8<--------------------- Polipo README --text--


Polipo is single-threaded, non blocking caching web proxy that has very modest resource needs. See the file INSTALL for installation instructions. See the texinfo manual (available as HTML after installation) for more information.

Current information about Polipo can be found on the Polipo web page,

http://www.pps.jussieu.fr/~jch/software/polipo/

I can be reached at the e-mail address below, or on the Polipo-users mailing list:

<polipo-users@lists.sourceforge.net>

Please see the Polipo web page for subscription information.

                                    Juliusz Chroboczek
                                    <jch@pps.jussieu.fr>