[How-to] Protect your server from unauthorized event triggering

WARNING
This is not a ready-to-use resource, you will need to understand it (it’s very easy) and do some modifications in your resources.


This method of protection is already using in my server and it works quite good (2-3 bans per day), but it should be much more effective on RP servers!

Description

This method is based on redefining TriggerServerEvent/TriggerEvent global functions.
Real Trigger* function names should be stay hidden.
You can make your resource private, but even better idea would be to use find/replace script before starting your server, which will generate unique “cryptographish” function names for your resource.
Also, there is an additional protection layer, which is based on using server-side generated token (you probably don’t need it if you’re using find/replace script from above).

Basic implementation

Download .zip (1.6 KB)

Read Online

It contains some tips in script files how to use it.

If you have any ideas how to improve it even more - I’d be glad to discuss it!

4 Likes

1 Like