Web代理(proxy)服務器是網絡的中間實體。 代理位於Web客戶端和Web服務器之間,扮演“中間人”的角色。
HTTP的代理服務器即是Web服務器又是Web客戶端。
代理服務器的作用
- 實現翻牆上網
- 實現局域網上網(代理上網)
- 實現匿名訪問(代理服務器會清除客戶端的信息)
- 實現緩存功能,加快網站訪問速度
- 實現內容過濾
Java實現代理服務器
https://github.com/huangchengkang/proxyee.git
https://www.cnblogs.com/littleatp/p/4729781.html
參考:
https://www.cnblogs.com/lexiaofei/p/7459462.html
https://www.cnblogs.com/tgwang/p/5170480.html
https://blog.csdn.net/dotalee/article/details/77838659