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?

Thaldraes
Novice
Level:
0
Reputation:
0
Posts:
29
Likes:
1
Credits:
1
05-08-2017, 02:55 AM
#11
What do you mean ?
You mean data stealing ? Like from your MySQL Database ?

RE: How to prevent form hijacking in PHP?

moonviper890
Newbie
Level:
1
Reputation:
0
Posts:
17
Likes:
0
Credits:
9
03-06-2021, 12:14 PM
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)