Raised This Month: $12 Target: $400
 3% 

Connect - A safer OnClientPreConnect forward


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-19-2011 , 14:26   Connect - A safer OnClientPreConnect forward
Reply With Quote #1

See this post for the latest version that fixes compatibility with the 2017-10-20 TF2 update.

----------------------------------------------------

This extension provides a OnClientPreConnect forward (similar to CBaseServer's), but does proper checking to prevent malicious people spoofing SteamIDs.

If you are currently using CBaseServer for reserved slots, it's possible for a client to spoof an admin's SteamID and cause someone to be kicked from the server (although they would be later denied, so they couldn't actually join the game).
This extension does these checks before OnClientPreConnect is fired, so this isn't possible.

There are some additional features such as being able to change the password provided before it's checked (see included example plugin) and the ability to reject the client with a reason (like SourceMod's later OnClientConnect forward).

Only the Source 2009 engine is supported, as it's the only one that's been updated to use the new authentication system.

Recommended build (see Snapshots link below for downloads): 1.2.0-hg38

Source Code | Build Status | Snapshots
__________________

Last edited by Dr!fter; 07-11-2018 at 18:37.
asherkin is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode