Skip to content
View in the app

A better way to browse. Learn more.

Learn more

block-hltv-connections/README.txt

README.txt
38 lines · 1.6 KB · Text
Raw
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
  1. Compile scripting/olds_hltvblock.sma and copy olds_hltvblock.amxx to
     addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
  2. 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.

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.