Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Block HLTV Connections

Featured Replies

  • Administrator

Blocks HLTV proxies that are not on an allowed list, so nobody can attach a hidden proxy to watch private rounds.

Block HLTV Connections 1.0.0 (olds.ro)

Refuses HLTV proxies whose IP is not on an allow list, so nobody can attach a hidden proxy to watch private rounds. Ordinary players are not affected.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI (rh_drop_client)
  • AMX Mod X 1.10.0.5490 or newer

Install

  • Compile scripting/olds_hltvblock.sma and copy olds_hltvblock.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
  • Copy configs/hltv_allow.ini to addons/amxmodx/configs/ and list your own HLTV addresses.

hltv_allow.ini One entry per line: an IPv4 address (203.0.113.10) or a network with its prefix length (198.51.100.0/24). ";" starts a comment. The file is read at every map start and by amx_hltvblock_reload; bad lines are logged and skipped. No file, or no entries, means every proxy is refused.

Settings (addons/amxmodx/configs/plugins/olds_hltvblock.cfg, created on first run)

  olds_hltvblock_all 0                    1 = refuse every proxy, even listed ones
  olds_hltvblock_msg "HLTV not allowed"   the reason the proxy is shown

How a proxy is seen and refused At client_connect (and again at client_putinserver) a client that is a proxy (is_user_hltv, or the "*hltv" userinfo key) is checked against the list. A refused proxy is dropped with rh_drop_client and the reason 0.1 s later (dropping inside the connect callback is unsafe), and log_amx records its name, IP and why. An allowed proxy is logged too.

Admin (ADMIN_CFG)

  amx_hltvblock_reload        read hltv_allow.ini again
  amx_hltvblock_check <ip>    would a proxy from this IP be let in?

No downloads.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_hltvblock.sma, test/hb_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0833).

Block HLTV Connections
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.9 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 245 lines
/*
 * Block HLTV Connections (olds.ro) - refuses HLTV proxies whose IP is not on
 * the allow list, so nobody can attach a hidden proxy to watch private rounds.
 *
 * Copyright (C) 2026 daemon (olds.ro), written by daemon's plugin agent
 *
 * This program is free software: you can redistribute it and/or modify it
Show all 245 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.