Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex for the obsuring of console info #1642

Open
1 task done
AutonomousCat opened this issue Feb 9, 2024 · 3 comments
Open
1 task done

Regex for the obsuring of console info #1642

AutonomousCat opened this issue Feb 9, 2024 · 3 comments

Comments

@AutonomousCat
Copy link

Why?

I currently have the Discord minecraft console channel viewable by admins only because I don't want to expose people's IPs to moderators who might not be a good fit in the end. It would be a nice solution to be able to filter IP addresses using regex (since there are multiple areas where someone's IP might be shown, for example in player-joins, as well as plugin output (ie whois).

What and How?

It should behave the same, unless regex the regex setting is enabled.

Maybe it can work something like:

{
  "regex_here1": "replaced_by1",
  "regex_here2": "replaced_by2",
}

Are there alternatives?

Unsure

Checks

  • I have used the search at least once to check if my idea has already been suggested and perhaps already implemented.

Anything else

No response

@J-295
Copy link
Member

J-295 commented Feb 9, 2024

This exists already, DiscordConsoleChannelFilters in config.yml

@AutonomousCat
Copy link
Author

Oh dang thank you. Any personal recs for IP regex? I found this online somewhere

(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"

@AutonomousCat
Copy link
Author

I also see that it's recommended by Java devs to use the a built in Java utility for that . Maybe this can be it's own separate thing? Especially since the answers found for "IP regex" will vary so not everybody will get the same experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants