I’m trying to make an external logging system for things like banning, kicking, etc.
For security reasons i need to get the moderators cookie, so i can check with the Noblox api if the player is authorized to ban. How would i obtain this?
Not only is this suspicious & impossible, but as @camomileex0 said, this is most likely against ToS as well.
Use their UserId & make a ban system using DataStores. And you can use discord WebHooks to achieve logs as well. But you do not need their cookie to do that.
I wanted their Cookie so i could use check on my database if the player has the required rank in the group, because otherwise, if someone knew the hostadres, they could just edit and get all data.
As per the noblox.js documentation, you do need only their UserID. The only cookie you will need is your bot’s. You do not need to log into someone’s account to check their rank, it is not only illegal, but also unnecessary.
I don’t think anybody understood.
OP was talking about the Moderator’s cookie. They never mention if it was using a Roblox API/Script. And they never mentioned it was just any player’s.
Tengarapatu’s answer is the way to go.
As for getting the moderator’s cookie, (bot) make sure you have their consent. Or better yet, just create a new account just for bot purposes and make it a moderator. But you can do this by pressing F12 and clicking Application, then clicking Cookies and .ROBLOSECURITY.
BUT KEEP IN MIND DO NOT MAKE THIS COOKIE EXPOSED IN ANY WAY SHAPE OR FORM DO NOT SEND IT TO ANYONE OR THEY WILL HAVE ACCESS TO YOUR GROUP AND CAN GRIEF IT.