Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http.Fetch Logging System

HTTP Logger is a lightweight tool for Garry's Mod servers that monitors outbound HTTP activity. It logs every http.Fetch and http.Post call (URL, source file, and optional headers/parameters) so you can quickly trace which addon triggered a request.

Features

  • Logs http.Fetch and http.Post calls in real time
  • Shows the source file path of the caller
  • Prints request headers and parameters when provided
  • Zero configuration after install

Requirements

  • Garry's Mod server with Lua access

Installation

  1. Copy http_check.lua to your server autorun directory:
    • YOUR_SERVER\garrysmod\lua\autorun\server\http_check.lua
  2. Restart the server.

Usage

Once installed, all HTTP requests made via http.Fetch or http.Post will be printed to the server console.

Example output:

[HTTP Fetch] URL: https://example.com/api
Source File: addons/my_addon/lua/autorun/server/my_addon.lua
Headers:
	Authorization: Bearer <token>

Why use this?

  • Debug API failures by seeing the exact URL and source file
  • Audit third-party addons for unexpected external requests
  • Improve transparency and server security

Notes

  • This tool overrides the global http.Fetch and http.Post functions and then calls the originals.
  • If another addon also overrides these functions, load order may affect which logger runs last.

License

See LICENSE.

About

Monitors all "http.Fetch" requests made by your GMod addons. Easy debugging, better security.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages