My question today is, how can I set a value in registry or in any other way, and then block it so it would be read-only and could not be modified, the only way to delete it would be by reinstalling Windows.
Hmm I dont know what u think im trying to do, but I just want to generate a serial for a client out of unix time and random letters, and want to store it somehow so the user wont be able to change it. As simple as that ;)
Coz I want to make a multiplayer game, and if they get banned, they get banned on serial too. And please dont criticize me on making of the game and that it will be shit. Just please give me some clues.
But there are nabs who change the IP and username just to spam the server, can't you give me some clues? There is nothing wrong with what I wanna do since the players will know about the serial and that it exists.
Um, now that really sounds like it would be an abuse of that knowledge. There are a lot of solutions that would be more than enough for keeping the vast majority of rule-breakers out that aren't as extreme or involved as that one.
Like setting a variable in a well-hidden folder created by your game client containing valuable RSA-encrypted metadata that would be sent to the server to log in. If the folder was deleted, then the client would not load as it would be lacking that metadata.
EDIT: As for spam protection... count the number of statistically similar queries in a minute?