In my profile.php
script, I have a flag function that allows users to flag that user.
If they flag a user, it sends data (user_id
, reason
, etc) to a file called flag.php
which does all the banning and stuff. The data is sent to flag.php
through
header("Location: flag.php?user_id=___&reason=___")
Then in flag.php
, after it does all the banning, it redirects the user back to the profile through another header. The user never sees the flag.php
.
Is my flag.php
safe? because they never see the script?
EDIT You should never assume it's safe for GETs...Going to either do a banuser function or send it through sessions.