It’s not against the rules. What they were clamping down on was 1 person scanning multiple cards or a person standing outside games offering cards for scanning.
It is in the T&C’s that you can give it to a friend if you are unable to attend. But it is via a prior arrangement and not some random stranger.
Think we discussed it in this thread