Optionally bind bots to specific IP addresses through the dev portal #4260
Answered
by
advaith1
ImNimboss
asked this question in
API Feature Requests & Ideas
Replies: 2 comments 1 reply
-
Even whether it is just optionally, how should it be handled when your ip is dynamic? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ImNimboss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example if my IP address was 69.42.06.942 then I could optionally bind my bot to that IP address through the developer portal.
By "binding" I mean making it so that any requests with the
Authorization
header as the bot's token would ONLY be accepted if they were from said whitelisted IP address, otherwise they'd be rejected with a 403 - Forbidden.This is a great way of preventing disaster from token leaks as no one else would be able to request from the token, because Discord only accepts requests for that bot from that specific IP address.
Another idea is you could make it so multiple IP addresses could be whitelisted, if this were to get implemented of course.
Beta Was this translation helpful? Give feedback.
All reactions