Hi there
I was wondering how I could prevent this type of behaviour from users on my website, if they type something like mydomain?search=1
in the address bar, all of the rows from my table show up.
I have certain rules in place, such as, only display the rows which have a status > 1 etc, but that type of search overrides everything (it ignores the rules I set in the WHERE clause). How does that work?
The thing I’m concerned about is that users can search for ‘disabled’ or ‘blacklisted’ rows this way. Besides searching for * or 1, what are the other parameters users can use to search the entire table?
Thank you for stopping by.