'How to write NFC tag if a specific URL is on it

I have an NFC app where at the moment the tags can be written only if its' serial number (UID) is on the backend of my system.

I am branching out and I would not be able to get the UID's of the new tags but I am able to encode it with a URL.

My question is how would I be able to now use the UIDs or having that URL as an authenticating system on my code. If authenticated, to go ahead and write the tag as normal. If not, does not write the NFC tag and come up with error message.



Solution 1:[1]

"Authenticating" implies some level of security, where there is really no security with NFC.

While you can write your App to read the tag UID and URL from the data section of the Tag and check these against your requirements, there is little to stop people using Tags with changeable UID's to duplicate your Tags and bypass any "security" you think you have.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andrew