Backend Development

How to prevent form hijacking in PHP?

Submitted by greatlogix, , Thread ID: 18592

Thread Closed

RE: How to prevent form hijacking in PHP?

#11
What do you mean ?
You mean data stealing ? Like from your MySQL Database ?

RE: How to prevent form hijacking in PHP?

This post was last modified: 03-06-2021, 12:15 PM by moonviper890
#12
I have had a lot of success by rendering the first line of the code (the form activation line) in javascript... eliminates the need for a captcha.

< .....script..... >
document . write (' < form action="page.php" method="get" > ' ) ;
<..... /script..... >

wrapped in javascript like the above line, it will only show to actual live users.

I had to put a bunch of extra spaces in the above code for the system to let me post it. If you have a basic understanding of coding, you'll figure out what I did.

Users browsing this thread: 1 Guest(s)