Git Product home page Git Product logo

http_proxy_py's Introduction

HTTP 网络代理服务器实验代码

这是一个简单的 HTTP 网络代理服务器 的 Python 实现

本代理服务器实现的功能有:

  1. 监听本地 8888 号端口,然后接收用户浏览器的请求,并将其与服务器端进行通信,再将请求到的内容分发给用户浏览器
  2. 过滤特定域名的访问。用户可以通过往与 .py 文件同目录下的 blacklists.txt 中添加域名(支持正则表达式)来实现对特定域名的过滤
  3. 过滤特定用户访问外部网站。代理服务器管理员可以通过往 blockusers.txt 中添加用户名来实现对特定用户的屏蔽

使用方法

  1. 首先,确保你的电脑上安装了 Python 3.7 及以上版本
  2. 克隆本仓库的代码
  3. 在系统设置中开启代理服务器,地址填 127.0.0.1localhost,端口填 8888
  4. 在克隆下来的代码目录中,双击运行 http_main.py 文件即可

关于

本项目是吉首大学2022级学生李悠然的计算机网络实验作业(第一部分)

本项目使用 VSCode 编辑器进行开发

作者的学号:2022405532

谢谢使用,祝万事如意

http_proxy_py's People

Contributors

west-pavilion avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.