The Daily Click ::. Forums ::. Klik Coding Help ::. Lacewing white list
 

Post Reply  Post Oekaki 
 

Posted By Message

nick_peoples



Registered
  10/12/2009
Points
  173

I am an April Fool
10th March, 2012 at 10/03/2012 20:09:37 -

Hey guys,
Do you know how I can make a white list for my Lacewing application? By white list I mean you are kicked unless your username in on the list (opposite of a black list/ban list).

Thanks for your help,
-nick

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
11th March, 2012 at 11/03/2012 19:14:38 -

If you own your own server running a lacewing implementation just modify the code to include a check at the login method.

I've done something similar with my game http://tiipotopia.com

In my case it connects to a database to check a username and password combination.


Another method would be to use the Get object to send a request to php page on your server that checks a list and returns 1 or 0, but this method would be easy to bypass, very easy. One could just modify their hosts file to have their computer connect to their own script, ect.

 
n/a

Sumo148

Super amazing fantastic user

Registered
  26/01/2009
Points
  530

360 OwnerThe Cake is a LieVIP MemberPokemon Ball!I am an April FoolI donated an open source projectSanta Hat
11th March, 2012 at 11/03/2012 21:40:11 -

I guess the easiest way would be to have a list on the game frame of all the players that are allowed. Then when you connect to the channel compare the username to the list using the "find string exact" feature.

I'm pretty sure comparing it to "-1" means that it was not in the list. Therefore, setting it equal to -1 and different to -1 will result in checking to see if they're in the list.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click