{"id":2463,"date":"2023-02-08T22:21:39","date_gmt":"2023-02-08T22:21:39","guid":{"rendered":"https:\/\/xgamingserver.com\/blog\/?p=2463"},"modified":"2026-06-15T14:37:36","modified_gmt":"2026-06-15T14:37:36","slug":"how-to-ban-players-from-your-garrys-mod-server","status":"publish","type":"post","link":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/","title":{"rendered":"How to ban players from your\u00a0Garry&#8217;s Mod Server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Griefers, prop-spammers, and rule-breakers are a fact of life when you run a public Garry&#8217;s Mod server. Knowing exactly how to remove them \u2014 temporarily or permanently, by player slot, SteamID, or IP \u2014 is one of the most important skills a GMod admin can have. This guide covers everything: the vanilla Source-engine console commands that ship with every dedicated server, how to find the right ID for the right person, how to make your bans survive a server restart, and how the admin mods most communities actually run (ULX and SAM) turn all of this into a single chat command.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Everything here runs from your server console or through RCON, and all of the persistent settings live in <code>garrysmod\/cfg\/server.cfg<\/code> \u2014 the config file Garry&#8217;s Mod auto-executes every time the server starts. If you&#8217;re standing up a fresh box, our <a href=\"https:\/\/xgamingserver.com\/gmod-server-hosting\">managed Garry&#8217;s Mod hosting plans<\/a> give you that console and config access out of the box, and the <a href=\"https:\/\/xgamingserver.com\/docs\/garrys-mod\">Garry&#8217;s Mod documentation<\/a> walks through the full setup.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Find the player&#8217;s userid or SteamID with <code>status<\/code><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before you can ban anyone, you need to identify them. Run the <code>status<\/code> command from the server console (or via RCON) to print a list of every connected player. The output gives you two things that matter for banning: the <strong>userid<\/strong> \u2014 the small leading <code>#<number><\/code> assigned for the current session \u2014 and the <strong>SteamID<\/strong>, the permanent identity in the form <code>STEAM_1:1:13967715<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>status\n\n# userid name              uniqueid            connected ping ...\n#  2     \"Griefer McProps\"  STEAM_1:1:13967715  04:12     45\n#  3     \"RegularPlayer\"    STEAM_1:0:55512345  17:48     32<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use the <strong>userid<\/strong> (here, <code>2<\/code>) for quick in-session actions like kicking or temp-banning. Use the <strong>SteamID<\/strong> (<code>STEAM_1:1:13967715<\/code>) when you want a permanent ban that survives reconnects \u2014 the userid changes every time a player rejoins, but the SteamID never does.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Ban with the vanilla console commands<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Garry&#8217;s Mod is built on the Source engine, so it inherits the standard Source ban command set. These work on a stock dedicated server with no addons installed. The core command is <code>banid<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># banid <minutes> <userid|SteamID>\n# 0 minutes = PERMANENT ban\n\nbanid 30 2                      # ban userid 2 for 30 minutes\nbanid 0 2                       # ban userid 2 permanently\nbanid 0 STEAM_1:1:13967715      # ban by SteamID, permanent<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The <code><minutes><\/code> argument is the ban length, and <strong><code>0<\/code> means permanent<\/strong>. You can pass either the in-session userid or the player&#8217;s SteamID \u2014 the SteamID is the safer choice for permanent bans because it identifies the actual account rather than a temporary slot number.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Banning by IP address<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If a troublemaker keeps making new Steam accounts, an IP ban can be more effective. Two commands handle IP banning:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># banip <minutes> <userid|ip>   \u2014 0 = permanent\nbanip 0 2                       # ban the IP of userid 2, permanently\nbanip 60 203.0.113.45           # ban a raw IP for 60 minutes\n\n# addip <minutes> <ip>          \u2014 add an IP straight to the ban list\naddip 0 203.0.113.45<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Note that IP bans are blunt instruments \u2014 players behind shared or dynamic IPs (mobile networks, university campuses, CGNAT) can be caught up or escape over time. SteamID bans are usually the better default; reserve IP bans for persistent ban-evaders.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Kicking instead of banning<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes you just want someone gone now, not gone forever. <code>kickid<\/code> and <code>kick<\/code> remove a player without adding them to the ban list:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kickid 2 \"Stop prop-spamming\"          # kick by userid (or SteamID) with a reason\nkickid STEAM_1:1:13967715 \"Final warning\"\nkick \"RegularPlayer\"                   # kick by name<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Lifting a ban<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Made a mistake, or ready to give someone a second chance? Remove the ban with <code>removeid<\/code> (for a SteamID) or <code>removeip<\/code> (for an IP):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>removeid STEAM_1:1:13967715      # un-ban a SteamID\nremoveip 203.0.113.45           # un-ban an IP<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Make bans permanent across restarts with <code>writeid<\/code> and <code>writeip<\/code><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s the gotcha that catches almost every new admin: <strong>by default, the ban list lives only in memory.<\/strong> A &#8220;permanent&#8221; <code>banid 0 ...<\/code> ban will vanish the next time you restart the server unless you explicitly write it to disk. The two commands that save your ban lists are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>writeid<\/code> \u2014 writes the SteamID ban list to <strong><code>banned_user.cfg<\/code><\/strong><\/li>\n<li><code>writeip<\/code> \u2014 writes the IP ban list to <strong><code>banned_ip.cfg<\/code><\/strong><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So a complete permanent SteamID ban is actually a two-step process:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>banid 0 STEAM_1:1:13967715      # add the permanent ban (in memory)\nwriteid                         # save the SteamID list to banned_user.cfg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And for IPs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>banip 0 203.0.113.45\nwriteip                         # save the IP list to banned_ip.cfg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To make those lists load automatically on startup, your <code>server.cfg<\/code> can execute them \u2014 but in practice most admins simply run <code>writeid<\/code>\/<code>writeip<\/code> after issuing a ban, and Source loads the <code>.cfg<\/code> files when the server boots. The spelling matters: it&#8217;s <code>writeid<\/code> and <code>writeip<\/code> (no underscore), not <code>write_id<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vanilla ban command cheat-sheet<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Command<\/th><th>What it does<\/th><\/tr><\/thead><tbody>\n<tr><td><code>banid <minutes> <userid|SteamID><\/code><\/td><td>Ban by userid or SteamID. <code>0<\/code> = permanent.<\/td><\/tr>\n<tr><td><code>banip <minutes> <userid|ip><\/code><\/td><td>Ban by IP. <code>0<\/code> = permanent.<\/td><\/tr>\n<tr><td><code>addip <minutes> <ip><\/code><\/td><td>Add an IP directly to the IP ban list.<\/td><\/tr>\n<tr><td><code>removeid <SteamID><\/code><\/td><td>Remove a SteamID ban.<\/td><\/tr>\n<tr><td><code>removeip <ip><\/code><\/td><td>Remove an IP ban.<\/td><\/tr>\n<tr><td><code>kickid <userid|SteamID> [reason]<\/code><\/td><td>Kick a player (no ban).<\/td><\/tr>\n<tr><td><code>kick <name><\/code><\/td><td>Kick a player by name.<\/td><\/tr>\n<tr><td><code>writeid<\/code><\/td><td>Save SteamID bans \u2192 <code>banned_user.cfg<\/code><\/td><\/tr>\n<tr><td><code>writeip<\/code><\/td><td>Save IP bans \u2192 <code>banned_ip.cfg<\/code><\/td><\/tr>\n<tr><td><code>status<\/code><\/td><td>List connected players with userid + SteamID.<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: The easier way \u2014 admin mods (ULX and SAM)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The vanilla commands work, but they&#8217;re clunky: you have to be at the server console, look up userids by hand, and remember to run <code>writeid<\/code> every time. That&#8217;s why nearly every real GMod community runs an <strong>admin addon<\/strong>. These let trusted staff ban people from in-game chat, with a friendly menu and automatic persistence. The two most common are ULX and SAM.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ULX + ULib<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ULX is the long-standing standard admin suite. It <strong>requires ULib<\/strong> as a dependency \u2014 install both addons or ULX won&#8217;t load. Once it&#8217;s running, your admins ban people with chat commands typed right into the in-game say box:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>!ban <player> <minutes> <reason>      # 0 minutes = permanent\n!banid <SteamID> <minutes> <reason>   # ban an offline SteamID\n!kick <player> <reason>\n\n# Console equivalents (server console \/ RCON):\nulx ban\nulx banid\nulx kick<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">As with vanilla, <code>0<\/code> minutes means a permanent ban. ULX also handles persistence for you \u2014 you don&#8217;t need to run <code>writeid<\/code> manually. A big advantage of <code>!banid<\/code> is that you can ban a player who has already disconnected, just from their SteamID.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SAM (Simple Admin Mod)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">SAM is a popular, more modern alternative with a polished menu UI. It provides the same chat-command experience \u2014 <code>!ban<\/code> and <code>!kick<\/code> \u2014 and pops open a menu where you can pick the player, set the duration, and type a reason without memorizing any syntax. If you&#8217;re starting fresh and want a clean admin panel, SAM is a strong choice; if you want the largest ecosystem of compatible addons, ULX is the safe bet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Either way, the principle is the same: define who your admins are, give them ban permission, and they handle moderation from inside the game without ever touching the console.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where bans and config live<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Knowing the file layout helps when you want to edit bans by hand or audit who&#8217;s banned:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>File<\/th><th>Purpose<\/th><\/tr><\/thead><tbody>\n<tr><td><code>garrysmod\/cfg\/server.cfg<\/code><\/td><td>Auto-executed on every server start; holds your persistent convars.<\/td><\/tr>\n<tr><td><code>garrysmod\/cfg\/banned_user.cfg<\/code><\/td><td>SteamID ban list (written by <code>writeid<\/code>).<\/td><\/tr>\n<tr><td><code>garrysmod\/cfg\/banned_ip.cfg<\/code><\/td><td>IP ban list (written by <code>writeip<\/code>).<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can open <code>banned_user.cfg<\/code> in any text editor to see the full ban list \u2014 each entry is a <code>banid<\/code> line. Be careful editing it directly while the server is running, though, since <code>writeid<\/code> will overwrite the file with the in-memory list.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Banning over RCON (remote administration)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you don&#8217;t have direct console access, you can issue every command above remotely over RCON. Set an <code>rcon_password<\/code> in <code>server.cfg<\/code>, then from a connected client&#8217;s console authenticate and run commands prefixed with <code>rcon<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rcon_password yourpassword       # authenticate\nrcon status                      # list players remotely\nrcon banid 0 2                   # ban userid 2 permanently\nrcon writeid                     # persist the ban list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">RCON sends commands in plaintext, so use a long, random password and lock the port down where you can. For the full setup and security hardening, see our walkthrough on <a href=\"https:\/\/xgamingserver.com\/blog\/how-to-modify-the-rcon-feature-on-your-garrys-mod-server\/\">how to modify RCON on your Garry&#8217;s Mod server<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related admin tasks<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Banning is one piece of running a clean server. A few neighbouring tasks worth setting up at the same time:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Stop griefers flying through walls \u2014 learn <a href=\"https:\/\/xgamingserver.com\/blog\/how-to-disable-noclip-feature-on-your-garrys-mod-server\/\">how to disable noclip on your GMod server<\/a> by setting <code>sbox_noclip 0<\/code>.<\/li>\n<li>Most ban issues are debugged from the console \u2014 here&#8217;s <a href=\"https:\/\/xgamingserver.com\/blog\/how-to-enable-the-in-game-console-on-your-garrys-mod-launcher\/\">how to enable the in-game developer console<\/a> so you can type <code>status<\/code> and <code>rcon<\/code> commands.<\/li>\n<li>If your admin mod or DarkRP stores bans in a database, you&#8217;ll likely need <a href=\"https:\/\/xgamingserver.com\/blog\/how-to-add-mysqloo-to-your-garrys-mod-server\/\">MySQLoo installed for MySQL persistence<\/a>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">How do I permanently ban a player in Garry&#8217;s Mod?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run <code>banid 0 <SteamID><\/code> in the server console \u2014 <code>0<\/code> minutes means permanent \u2014 then run <code>writeid<\/code> to save it to <code>banned_user.cfg<\/code> so it survives a restart. Using the SteamID rather than the userid ensures the ban follows the account, not just the current session slot.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does my ban disappear after a server restart?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Because the ban list is held in memory by default. After issuing <code>banid<\/code> or <code>banip<\/code>, you must run <code>writeid<\/code> (for SteamID bans) or <code>writeip<\/code> (for IP bans) to write the list to disk. If you skip that step, the ban is gone the moment the server reboots. Admin mods like ULX and SAM handle this persistence automatically.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What&#8217;s the difference between userid and SteamID?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The userid is a small temporary number (like <code>#2<\/code>) assigned for the current session and shown by <code>status<\/code>; it changes every time the player reconnects. The SteamID (like <code>STEAM_1:1:13967715<\/code>) is the player&#8217;s permanent Steam identity. Use userid for quick kicks and temp bans, and SteamID for any permanent ban.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I unban a player?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use <code>removeid <SteamID><\/code> to lift a SteamID ban, or <code>removeip <ip><\/code> to lift an IP ban. Run <code>writeid<\/code> or <code>writeip<\/code> afterward to save the updated list. With ULX you can use the in-game unban menu instead.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Should I ban by SteamID or by IP?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">SteamID is the better default \u2014 it targets a specific account and won&#8217;t accidentally catch innocent players. IP bans (<code>banip<\/code> \/ <code>addip<\/code>) are useful against persistent ban-evaders who keep making new accounts, but they can sweep up other people on shared or dynamic IP ranges, so use them sparingly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need an admin mod to ban players?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No \u2014 the vanilla <code>banid<\/code>, <code>banip<\/code>, and <code>kickid<\/code> commands work on any dedicated server. But ULX (with ULib) or SAM make moderation far easier with in-game chat commands like <code>!ban<\/code> and <code>!kick<\/code>, automatic persistence, and per-rank permissions, which is why almost every community server runs one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Griefers, prop-spammers, and rule-breakers are a fact of life when you run a public Garry&#8217;s Mod server. Knowing exactly how to remove them \u2014 temporarily or permanently, by player slot, SteamID, or IP \u2014 is one of the most important skills a GMod admin can have. This guide covers everything: the vanilla Source-engine console commands [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2464,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[40],"tags":[],"class_list":["post-2463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gmod-server-docs"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.5 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to ban players from your\u00a0Garry&#039;s Mod Server - XGamingServer<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to ban players from your\u00a0Garry&#039;s Mod Server\" \/>\n<meta property=\"og:description\" content=\"Griefers, prop-spammers, and rule-breakers are a fact of life when you run a public Garry&#8217;s Mod server. Knowing exactly how to remove them \u2014 temporarily or permanently, by player slot, SteamID, or IP \u2014 is one of the most important skills a GMod admin can have. This guide covers everything: the vanilla Source-engine console commands [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/\" \/>\n<meta property=\"og:site_name\" content=\"XGamingServer\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/xgamingserver69\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-08T22:21:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-15T14:37:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Youssef Ayman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@xgamingserver\" \/>\n<meta name=\"twitter:site\" content=\"@xgamingserver\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Youssef Ayman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/\"},\"author\":{\"name\":\"Youssef Ayman\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/d76089853704ac189e01449b0e449e3e\"},\"headline\":\"How to ban players from your\u00a0Garry&#8217;s Mod Server\",\"datePublished\":\"2023-02-08T22:21:39+00:00\",\"dateModified\":\"2026-06-15T14:37:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/\"},\"wordCount\":1461,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png\",\"articleSection\":[\"GMod\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/\",\"url\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/\",\"name\":\"How to ban players from your\u00a0Garry's Mod Server - XGamingServer\",\"isPartOf\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png\",\"datePublished\":\"2023-02-08T22:21:39+00:00\",\"dateModified\":\"2026-06-15T14:37:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#primaryimage\",\"url\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png\",\"contentUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/xgamingserver.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GMod\",\"item\":\"https:\/\/xgamingserver.com\/blog\/category\/gmod-server-docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to ban players from your\u00a0Garry&#8217;s Mod Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#website\",\"url\":\"https:\/\/xgamingserver.com\/blog\/\",\"name\":\"XGamingServer\",\"description\":\"Dedicated Game Server Hosting\",\"publisher\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/xgamingserver.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\",\"name\":\"XGamingServer\",\"url\":\"https:\/\/xgamingserver.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg\",\"contentUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"XGamingServer\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/web.facebook.com\/xgamingserver69\/\",\"https:\/\/x.com\/xgamingserver\",\"https:\/\/www.instagram.com\/xgamingserver\/\",\"https:\/\/www.linkedin.com\/company\/xgamingserver\/\",\"https:\/\/www.pinterest.com\/xgamingserver\/\",\"https:\/\/www.youtube.com\/channel\/UCHnOtWxpzaL2r3jM9Jm40EQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/d76089853704ac189e01449b0e449e3e\",\"name\":\"Youssef Ayman\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fa92e71017a2bb7ab969b798cba0c8f3f827d2d4733dbe2cacf7f195db920fe1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fa92e71017a2bb7ab969b798cba0c8f3f827d2d4733dbe2cacf7f195db920fe1?s=96&d=mm&r=g\",\"caption\":\"Youssef Ayman\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to ban players from your\u00a0Garry's Mod Server - XGamingServer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/","og_locale":"en_US","og_type":"article","og_title":"How to ban players from your\u00a0Garry's Mod Server","og_description":"Griefers, prop-spammers, and rule-breakers are a fact of life when you run a public Garry&#8217;s Mod server. Knowing exactly how to remove them \u2014 temporarily or permanently, by player slot, SteamID, or IP \u2014 is one of the most important skills a GMod admin can have. This guide covers everything: the vanilla Source-engine console commands [&hellip;]","og_url":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/","og_site_name":"XGamingServer","article_publisher":"https:\/\/web.facebook.com\/xgamingserver69\/","article_published_time":"2023-02-08T22:21:39+00:00","article_modified_time":"2026-06-15T14:37:36+00:00","og_image":[{"url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png","width":1024,"height":576,"type":"image\/png"}],"author":"Youssef Ayman","twitter_card":"summary_large_image","twitter_creator":"@xgamingserver","twitter_site":"@xgamingserver","twitter_misc":{"Written by":"Youssef Ayman","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#article","isPartOf":{"@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/"},"author":{"name":"Youssef Ayman","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/d76089853704ac189e01449b0e449e3e"},"headline":"How to ban players from your\u00a0Garry&#8217;s Mod Server","datePublished":"2023-02-08T22:21:39+00:00","dateModified":"2026-06-15T14:37:36+00:00","mainEntityOfPage":{"@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/"},"wordCount":1461,"commentCount":0,"publisher":{"@id":"https:\/\/xgamingserver.com\/blog\/#organization"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#primaryimage"},"thumbnailUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png","articleSection":["GMod"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/","url":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/","name":"How to ban players from your\u00a0Garry's Mod Server - XGamingServer","isPartOf":{"@id":"https:\/\/xgamingserver.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#primaryimage"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#primaryimage"},"thumbnailUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png","datePublished":"2023-02-08T22:21:39+00:00","dateModified":"2026-06-15T14:37:36+00:00","breadcrumb":{"@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#primaryimage","url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png","contentUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/xgamingserver.com\/blog\/how-to-ban-players-from-your-garrys-mod-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xgamingserver.com\/blog\/"},{"@type":"ListItem","position":2,"name":"GMod","item":"https:\/\/xgamingserver.com\/blog\/category\/gmod-server-docs\/"},{"@type":"ListItem","position":3,"name":"How to ban players from your\u00a0Garry&#8217;s Mod Server"}]},{"@type":"WebSite","@id":"https:\/\/xgamingserver.com\/blog\/#website","url":"https:\/\/xgamingserver.com\/blog\/","name":"XGamingServer","description":"Dedicated Game Server Hosting","publisher":{"@id":"https:\/\/xgamingserver.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xgamingserver.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/xgamingserver.com\/blog\/#organization","name":"XGamingServer","url":"https:\/\/xgamingserver.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg","contentUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg","width":"1024","height":"1024","caption":"XGamingServer"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.facebook.com\/xgamingserver69\/","https:\/\/x.com\/xgamingserver","https:\/\/www.instagram.com\/xgamingserver\/","https:\/\/www.linkedin.com\/company\/xgamingserver\/","https:\/\/www.pinterest.com\/xgamingserver\/","https:\/\/www.youtube.com\/channel\/UCHnOtWxpzaL2r3jM9Jm40EQ"]},{"@type":"Person","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/d76089853704ac189e01449b0e449e3e","name":"Youssef Ayman","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fa92e71017a2bb7ab969b798cba0c8f3f827d2d4733dbe2cacf7f195db920fe1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fa92e71017a2bb7ab969b798cba0c8f3f827d2d4733dbe2cacf7f195db920fe1?s=96&d=mm&r=g","caption":"Youssef Ayman"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/02\/blog-background-11.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/2463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/comments?post=2463"}],"version-history":[{"count":3,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/2463\/revisions"}],"predecessor-version":[{"id":22290,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/2463\/revisions\/22290"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/media\/2464"}],"wp:attachment":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/media?parent=2463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/categories?post=2463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/tags?post=2463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}