Commit Graph

36 Commits

Author SHA1 Message Date
5a40a15f9c Added ability to add host to blocked table if visit count is exceeded 2019-02-13 16:34:56 -05:00
7ab1ca6ae0 Added additional query to block hosts in blocked file 2019-02-13 16:26:47 -05:00
d27d048d7a Added test for blocked.json hosts 2019-02-13 16:26:05 -05:00
c6271ac7b6 Fixed issue creating row if does not exist 2019-02-13 16:16:37 -05:00
5f577071ee Adding blocked_hosts table, ensure only new hosts are inserted. 2019-02-13 16:10:57 -05:00
b10d007b4d Added if not exists to init query, added parsing for blocked config 2019-02-13 15:54:11 -05:00
cc2498cddf Update the readme. 2019-01-27 21:29:50 -05:00
f8aa81be8d Implement blocking functionality after certain count of visits, added tests 2019-01-27 21:29:10 -05:00
9bb57aebfe Updating some documentation, README 2019-01-27 11:58:48 -05:00
7dd14cbd06 Split database code into it's own module 2019-01-27 11:53:17 -05:00
e26986770d Corrected sqlite queries, added function to init or update row 2019-01-27 11:44:00 -05:00
16b5d88d05 Switch to httpbin.org 2019-01-27 11:43:32 -05:00
8ffb1a0522 Figuring out how best to update the database 2019-01-27 09:17:08 -05:00
123c50542e Adding the sqlite3 module. 2019-01-27 09:06:56 -05:00
06a5b7e561 Initial functions for dealing with the database 2019-01-27 09:06:39 -05:00
d48e61dc4d Updates readme, updates packages used 2019-01-26 13:32:04 -05:00
3f7ce3f521 Removing old imports 2019-01-26 13:31:42 -05:00
d5a6686e23 First passing proxy test 2019-01-26 13:17:00 -05:00
2151a236d3 Working request forwarding/piping responses back 2019-01-26 13:12:04 -05:00
2f102b06c3 Pipe the request directly 2019-01-26 11:18:31 -05:00
8612ee9ee4 Removing unnecessary parsing from code, prefer piping directly 2019-01-26 11:09:39 -05:00
89bd9f9005 Working on forwarding HTTP requests 2019-01-26 10:19:25 -05:00
42efcb5909 Update readme 2019-01-26 08:18:36 -05:00
9cae2a9bad Documentation, adding comments and removing old console.log statemenets 2019-01-26 08:14:42 -05:00
cb120763e1 Properly parse request headers, use trim for leading whitespace 2019-01-26 08:09:48 -05:00
b89cb298d3 Including Python test suite for proxy 2019-01-26 07:54:31 -05:00
b0fba821cf Adding winston 2019-01-26 07:48:52 -05:00
771ee83fd4 Bring in winston for logging, upgrade to async/await for promises 2019-01-26 07:48:38 -05:00
0bc24e975c Fleshing out some project details 2019-01-24 22:37:42 -05:00
7357d52eed Adding a logging method to the HttpRequest class, since this is a proxy 2019-01-24 22:29:05 -05:00
33ceceaea9 Working httpRequest parsers 2019-01-24 22:20:17 -05:00
95e8d830a0 Setting up jest to run 2019-01-24 22:13:48 -05:00
33c6c41e8d Gitignore, added readme, jest for dev 2019-01-24 22:09:42 -05:00
c7c1bb5392 Starting HTTP parsing 2019-01-24 22:07:42 -05:00
ea45d63909 Got socket.on working 2019-01-24 20:43:49 -05:00
99dcd841ed First commit 2019-01-24 19:54:48 -05:00