Garry's Mod

Garry's Mod

Not enough ratings
IPGB - IP Geo Blocker [Workshop Version]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Roleplay, Realism
File Size
Posted
15.366 KB
18 Sep, 2017 @ 5:37am
1 Change Note ( view )

Subscribe to download
IPGB - IP Geo Blocker [Workshop Version]

Description
!!!READ THIS VERY IMPORTANT TEXT!!!

This addon contains a lot of bad code and I'm not responsible for any performance impact on your server. However this mostly affects the VGUI, which you'll probably not use that often. So its kinda ok to use. For any more information read below
You probably want the cleaner Version on GitHub[github.com] which has less features (also no VGUI) but is a lot better in my opinion. The following description and media is mostly copy & paste from GmodStore because I'm lazy.

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

Description

IPGB - IP Geo Blocker is a lightweight yet powerful IP Blocker for your Garrys Mod Server. Simply restrict certain Countries from joining your server! Upon joining every user's IP will be traced down via 2 private and unlimited IP-Api Servers, after comparing the located country to the whitelist, the user will either be kicked or he may proceed joining. The best thing: This happens so fast you won't even realize. The initial check is being done immediately after joining, it should take less then 5 seconds to sort users out!

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

Why did I made this?

Experience. Simply said. I once was an operator at one of the biggest Gmod Server in my Country and after more then 1 year of experience I can tell you: In 1/20 cases someone from another country joins you server to learn your language/culture or roleplay style. In the other 19 cases they just mass kill everyone, insult you and ruin the fun for other players. Sure, this might not be the case on all/international/English servers, but for country based Servers, this is a huge problem.
So keep in mind: This script is rather dedicated for European servers! These are a few reason which finally inspired me to find a solution for this problem.

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

Isn't that racist?

No. You might wanna check out the definition of racism[en.oxforddictionaries.com]. Letting other people not play with you on your Gmod server does pretty much not fall under this definition ;)

And why should someone be on your server if he can't speak your language?

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

Features

1. Completely Ingame | whitelist countries/SteamID's in realtime, edit the config, view the logs, etc. all in a sleek Menu
2.Secure | People will be kicked immediatly (< 5 seconds) after joining the server, so no chance they kill someone if their country isn't whitelisted
3.Invulnerable * | "NetSec+ (Alpha)" Module should protect the
Net-Functions and kicks/logs Exploiters.
4. Independent | Requires no AdminMod or External MySQL-DB to work / should work with every GameMode
5. User-friendly | Your Joy is my Passion. I did everything possible to me to make this product as easy-to-use as possible.
6. Modules | Logging Module, Message Handler (Create fancy messages) and some more!

*NetSec+ is an early Alpha Build, it was developed and tested to resist basic "injections (running clientside lua to send data/requests to the server)". After multiple test, we were not able to bypass it. A 100% protection is yet not guaranteed.

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

Is it bypassable?

Yes. And there's no way we could fix that: Anyone could use a VPN to fake their location, but why should someone do such an effort, just to join your server?

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

Quick information before downloading

1. Everything is done Ingame, no file editing/lua knowledge is required
2. IPGB does not require a certain gamemode, admin mod or sth. else
3. For all problems: Check out the Documentation[github.com]
4. Open the VGUI by either typing "!ipgb" in the chat or "ipgb_menu" in the console (as superadmin)
5. I do not guarantee support. I will try tho

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

So what about the Performance / I know that ♥♥♥♥ from somewhere
So this was originally for sale on GmodStore.Com, however after a very long drama it was taken down because of the code quality. This was my first script ever (in any language), so I'm ok with that. But many people still wanted it, so I also made a free GitHub Version. This one is actually the original version (just without the update check) of this script, so just a free release of a "Premium Script". I'm sure I will NOT improve the code quality any time soon or at all, so don't complain about the code, I know its ♥♥♥♥. I'm currently not feeling like developing at all, but it was so much effort, that I didn't want to let it die on my hard drive. I will do basic support for this and I will fix important security issues, but I do no guarantee to add any features. Btw: The GitHub Version is a lot cleaner (however has less features) and I recommend it for everyone to use (its provided above).

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

Huge shoutout to:
A-10 for answering my stupid questions and making me start learning lua (My lua senpai <3)

Sealife for inspiring me, offering me a private git system, helping me to code this addon and providing a free GeoIP api Service

Info-Screen for assisting in (My-)SQL operations,performance and security
Popular Discussions View All (1)
2
9 Jul, 2019 @ 10:58am
dead momoxstudios.net
dok441
10 Comments
Momox  [author] 19 Aug, 2022 @ 1:35pm 
You're welcome, glad it still works!
Cuchillo_Baishan 18 Aug, 2022 @ 5:46pm 
The github version still works flawlessly with ip-api.com . Thank you very much for this useful piece of code.
Momox  [author] 8 Feb, 2021 @ 10:57am 
Check Out the new version on my GitHub, it has no UI but is better in any other regards
@abn 8 Feb, 2021 @ 6:06am 
Useful If you live on Asia or South America
Momox  [author] 9 Jul, 2019 @ 10:57am 
I have no clue why this has suddenly gained "popularity"... You might want to find another alternative.
I haven't played Gmod in years now, no longer do gLua (and I was never great to begin with...) and my API server seems dead, can't tell why. Sorry guys, as much as I'd like to update this, I cant.

I hereby grant everyone permission to update this in their own mannor, fork it, whatever, just tell me if someone's actually crazy enough to do it. It's pretty much yours then.
Pjork 7 Jul, 2019 @ 7:40pm 
ikr
Momox  [author] 22 Jun, 2018 @ 11:40am 
Thank you :)
Restion 22 Jun, 2018 @ 11:09am 
great script
Momox  [author] 5 May, 2018 @ 3:40am 
Excuse me, this is a Christian Addon, please stop sinning!
Sumar 4 May, 2018 @ 4:59pm 
gay