Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

Added User-Agent #113

Closed
wants to merge 2 commits into from
Closed

Added User-Agent #113

wants to merge 2 commits into from

Conversation

nikrozman21
Copy link

Added User-Agent to allow for easier traffic filtration on Cloudflare.

Case:
Someone has 50+ nodes and has strict firewalling set up on Cloudflare.
Deploying a new node means the account user will have to add another rule to allow that server to pass through.

Adding a User-Agent will drastically simplify that process since the account user only has to allow
User-Agent to pass through rather than whitelisting an empty UA which is commonly used by other attackers too.

@parkervcp
Copy link
Member

I could see people abusing this by sending requests as that user-agent then.

@nikrozman21
Copy link
Author

While that is true and it is a concern, it's still a lot simpler than having to whitelist IPs in the case you are firewalling based on AS numbers.

@TrixterTheTux
Copy link
Member

There's also a lot more requests than the 2 that were changed (https://github.com/pterodactyl/daemon/search?q=Request&unscoped_q=Request), and the User-Agent probably should pull the version from package.json instead of relying on hardcoding it in every place.

@nikrozman21
Copy link
Author

Ah, good find. Would you like me to fix that up and commit again?

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

Successfully merging this pull request may close these issues.

4 participants