Garry's Mod

Garry's Mod

评价数不足
IPGB - IP Geo Blocker [Workshop Version]
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 角色扮演, 写实
文件大小
发表于
15.366 KB
2017 年 9 月 18 日 上午 5:37
1 项改动说明 ( 查看 )

订阅以下载
IPGB - IP Geo Blocker [Workshop Version]

描述
!!!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
热门讨论 查看全部(1)
2
2019 年 7 月 9 日 上午 10:58
dead momoxstudios.net
dok441
10 条留言
Momox  [作者] 2022 年 8 月 19 日 下午 1:35 
You're welcome, glad it still works!
Cuchillo_Baishan 2022 年 8 月 18 日 下午 5:46 
The github version still works flawlessly with ip-api.com . Thank you very much for this useful piece of code.
Momox  [作者] 2021 年 2 月 8 日 上午 10:57 
Check Out the new version on my GitHub, it has no UI but is better in any other regards
@abn 2021 年 2 月 8 日 上午 6:06 
Useful If you live on Asia or South America
Momox  [作者] 2019 年 7 月 9 日 上午 10:57 
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 2019 年 7 月 7 日 下午 7:40 
ikr
Momox  [作者] 2018 年 6 月 22 日 上午 11:40 
Thank you :)
Restion 2018 年 6 月 22 日 上午 11:09 
great script
Momox  [作者] 2018 年 5 月 5 日 上午 3:40 
Excuse me, this is a Christian Addon, please stop sinning!
Sumar 2018 年 5 月 4 日 下午 4:59 
gay