0

I need to start an IRC server but I need to make only the clients I make, able to connect to the server.

Maybe I'm not explaining well enough, I am making an IRC client and I want it to be accessible ONLY through MY client, I don't want other clients like XCHAT ect... to be able to connect to it.

I will be using a username and password combo, but I want the users to connect only through my client...

I've tried searching on google but I've only found username password combo posts... maybe I was using the wrong keywords...

DomeWTF
  • 2,342
  • 4
  • 33
  • 46
  • Are you coding the IRC server as well, or just the client? If you aren't doing both, what server software are you using? – Taegost May 05 '14 at 20:18
  • I wanted to use an already made server but don't know which, the client is coded by me, however if there's more possibility, I could code the server myself – DomeWTF May 05 '14 at 20:20
  • Well, until you know what you're using server-side, you can't know for certain what possibilities exist. What might work for ServerA won't work for ServerB... – Taegost May 05 '14 at 20:27

1 Answers1

1

To prevent other clients, you could simply pass some type of hidden "client password" to the server.

So user submits login password, the client silently sends client password.

You end up with

Login
Password
ClientPassword

If the ClientPassword is not correct, don't allow the connection.

Joe Swindell
  • 684
  • 1
  • 7
  • 18
  • that was one of my options, but wouldn't that be easily spoofable with some reverse engineering? maybe creating the client password dynamically would be the solution? – DomeWTF May 05 '14 at 20:23
  • You are correct, you could try something like serializing the Login/Password/ClientPassword and then hash the entire transfer. This way you can't pull out just the ClientPassword – Joe Swindell May 05 '14 at 20:28