Garry's Mod

Garry's Mod

评价数不足
CFC HTTP Whitelist
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 写实
文件大小
发表于
更新日期
43.610 KB
6 月 25 日 上午 11:50
10 月 27 日 上午 8:30
5 项改动说明 ( 查看 )

订阅以下载
CFC HTTP Whitelist

在 let us pray 的 1 个合集中
EDSHOT's Noob Server
121 件物品
描述
ALL CREDIT GOES TO THE CFC TEAM FOR THE ADDON
Blocks http requests and references in HTML to addresses not in the allowed list of addresses.
- CFC Team

The addon works by wrapping the native Gmod HTTP calls to either allow or block the connection.
By default the addon will block all domains outside a select few that are deemed trustworthy to be allowed.

This is useful to:
  • Stop players from IP grabbing with pac3, media player, or the 3D stream radio addons*.
  • Stop bad addons from being able to GET or POST data to their backdoor or malicious domains.
  • Have full control over what is and isn't allowed. No need to worry about addon authors allowing something you don't want. *cough* StarfallEx *cough*

Users can configure what they want to allow or block in Options -> HTTP.

Server owners can configure what they want to allow or block by using a custom configuration file. You can find an example of that here:
https://github.com/cfc-servers/cfc_http_whitelist_config_template

Source code: https://github.com/CFC-Servers/cfc_http_whitelist
Source code (workshop version): https://git.groovyexpress.com/edshot99/cfc_cl_http_whitelist

The main differences between the Github and Workshop version is that I added domains to support the updated Media Player and a couple of trustworthy domains people have asked me to whitelist. (Even if they were anime related, but whatever. People want their files.)

*The 3D stream radio as of late 2023 solved the IP grabbing problem, but server owners can still disable the protection.