Labels

You’ll often want to keep a little bit of additional information attached to the various entities in your system.

Usually these labels are applied as a result of rules, for example:

1
2
CREATE RULE SignupFromTor WHERE isTorExitNode(Ip);
WHEN SignupFromTor THEN addLabel(User, "tor_signup");

This will let you later keep track of users that were created via Tor and apply stricter ratelimits.

Note: The isTorExitNode function is not included in this package. You can define it yourself though. See defining functions to get started!