[Help] Login server code
Posted: Sat Apr 10, 2010 1:32 am
Hi guys, i have made an anticheat software that detect all the more used hacks, prevent the dualbox and will prevent for bots if any here can help me with a little code for the server side.
Well, my software ad the protection client side. The idea is that if you have not opened the game with the anticheat, the server will kick you, like a gameguard system, but with my custom gameguard.
My software will add all the protection. When you run the launcher (anticheat), it will take your ip address and will save it in a table of the server database, with a value that indicates that the user can play in the server. When the anticheat is closed, it will delete this value with the ip adress.
Now i need to code in the server side. I need that the server verify the ip of the player, and verify if it ip is in the allowed players table (players that have the anticheat open), and if this ip is not in the table the server kick this player, and if it is in the table it can play without being kicked.
I simply need this fragment of code, and how can i implement this. I will thank you very much if you can help me.
Player open anticheat >> anticheat detects user ip >> send ip to the table of allowed users >> the game is launched >> when you enter the world of lineage the server determines the ip of the player, and if it's on the allowed users table he can play, if not, it get kicked.
Other thing that i can do is that the anticheat ask the user to login with his game acount. The anticheat send this account (if its correct) to the allowed users table.
When you login, if the account that you are entering is in the table of allowed users, you can login. If not, you cant.
I need the code to verify if the account you are entering is in the table of allowed users. If its here, you can login, if not, you cant.
Other thing that i need is that the server delete this value by a period of time. Like every 5 minutes the server deletes the value, so the anticheat delete and rewrite it every 4 minutes.
When the server deletes de value it verify it other time.
With this im securing that if the user close the anticheat by killing the process, the value get deleted and never rewrited without reopen the anticheat.
Plz help, i will thank you very much!
Sorry for my bad english
Well, my software ad the protection client side. The idea is that if you have not opened the game with the anticheat, the server will kick you, like a gameguard system, but with my custom gameguard.
My software will add all the protection. When you run the launcher (anticheat), it will take your ip address and will save it in a table of the server database, with a value that indicates that the user can play in the server. When the anticheat is closed, it will delete this value with the ip adress.
Now i need to code in the server side. I need that the server verify the ip of the player, and verify if it ip is in the allowed players table (players that have the anticheat open), and if this ip is not in the table the server kick this player, and if it is in the table it can play without being kicked.
I simply need this fragment of code, and how can i implement this. I will thank you very much if you can help me.
Player open anticheat >> anticheat detects user ip >> send ip to the table of allowed users >> the game is launched >> when you enter the world of lineage the server determines the ip of the player, and if it's on the allowed users table he can play, if not, it get kicked.
Other thing that i can do is that the anticheat ask the user to login with his game acount. The anticheat send this account (if its correct) to the allowed users table.
When you login, if the account that you are entering is in the table of allowed users, you can login. If not, you cant.
I need the code to verify if the account you are entering is in the table of allowed users. If its here, you can login, if not, you cant.
Other thing that i need is that the server delete this value by a period of time. Like every 5 minutes the server deletes the value, so the anticheat delete and rewrite it every 4 minutes.
When the server deletes de value it verify it other time.
With this im securing that if the user close the anticheat by killing the process, the value get deleted and never rewrited without reopen the anticheat.
Plz help, i will thank you very much!
Sorry for my bad english