Search code examples
whitelisttargeting

Whitelisting Problems?


I have a huge issue that has to do with whitelisting. I have been doing C++ for about 6 months now and I can't seem to figure out how to pinpoint my targets to limit who can open and use my application with a whitelist.

For example, if the user is not on the whitelist the program would tell them by the way it loads. I would like to see this done with ID's if specific ID matches with the whitelist then that person can use my program.

I have tried doing target drawbacks such as getting IP's, but doing this is so vulnerable if the IP is changed. Also, multiple programs could be opened up on different IDs on that IP, which I don't want.

Sorry if this is very confusing I have just been STRUGGLING with this whitelist I have less hair than I did before I started making the whitelist.

Thanks if you can help, tried to explain the best I could! :)


Solution

  • The general strategy is pretty simple.

    First, specify what criteria a user should meet to be on the whitelist.

    Second, specify how data about users on the whitelist will be stored.

    Third, when the program starts, gather information about the user - when the program starts - that can be compared against the criteria on the whitelist.

    Fourth, when comparing data about the user with stored whitelist data, start by assuming the user is NOT on the whitelist and only permit access if a match is found. If there are multiple criteria, you need to decide how to combine them to find a match (e.g. restrict a user to a specific IP, allow a user only if using an IP in a range - which will prevent a user starting the program from home, etc etc)

    Fifth, take steps to ensure your program can access the stored whitelist data, but users cannot modify it.