Maybe somebody knows whats the best way to obfuscate SQL Results for “Paid” users or “Free Users”.
Example for a project I have “Free Users”. They see just:
Work for rebuilding a ********************* **** ***
Category: Machine, Technology, Digital
Employer: Peter *******
Phone: ************
A paid user would see smth like:
Work for rebuilding a new Website for Ambassadors
Category: Machine, Technology, Digital
Employer: Peter Marchievzksi
Phone: +41 442 764 23 23
So I guess I could just use in my Serveractions a IF statement where I check the “Paid” / “Free” of a User, then query the SQL Query statement with *** obfuscating or the full one ?
Or maybe better to go with some Server Side / Expressions ? Perhaps thats the better way… ?
@teodor thats exactly what I thought. I mean its not high secure and I guess just leaving away the neccessary fields would also work and just show ******** statically…
@teodor okay but can‘t I just use conditional stuff on the website itself? So I would say, that I‘ll not obsfuscate fields, no I would NOT SHOW that {{name}} or {{phone}} number and go with a conditional statement / expression…?
Freddy, the conditional stuff must be done on the serverside.
I.e. a condition with two queries, depending on user - one that returns all the table columns, and another that only returns a few.