> No, no, no, no, no, no, no, no and HELL NO.
This code is utter garbage, and provides no more "security" than actually fixing the problem on the server.
Not to mention that the code itself is horribly written.
Just fix the problems on the server, and forget about "magic mushroom cloud fixes" like this one.
I'm just gonna go hit my head on my desk now.