Garry's Mod

Garry's Mod

Not enough ratings
CFC HTTP Whitelist
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
File Size
Posted
Updated
43.565 KB
25 Jun @ 11:50am
8 Oct @ 7:54am
4 Change Notes ( view )

Subscribe to download
CFC HTTP Whitelist

In 1 collection by its eternity in there
EDSHOT's Noob Server
121 items
Description
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.