Super Web Mart - Discount Coupons & Deals - Discount Promos, Coupon Codes, Discount deals and web site reviews
 

Author Topic: How to prevent form hijacking in PHP?  (Read 1345 times)

0 Members and 1 Guest are viewing this topic.

Offline janejackson87

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
    • seo uk
How to prevent form hijacking in PHP?
« on: April 18, 2012, 10:26:30 PM »
Hello

How to prevent form hijacking in PHP?

Webmaster Forum

How to prevent form hijacking in PHP?
« on: April 18, 2012, 10:26:30 PM »

Offline carlos

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
Re: How to prevent form hijacking in PHP?
« Reply #1 on: December 19, 2012, 08:46:16 AM »
Following things can be done for preventing your PHP Form from Hijacking

1. Make register_globals to off to prevent Form Injection with malicious data.
2. Make Error_reporting to E_ALL so that all variables will be intialized before using them.
3. Make practice of using htmlentities() strip_tags() utf8_decode() and addslashes() for filtering malicious data in php
4. Make practice of using mysql_escape_string() in mysql.

Please let me know if anyone has something more to add in this.

Offline ebrainnight

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
    • Solufy - AKWIRE Visual Suite for MaximoŽ
Re: How to prevent form hijacking in PHP?
« Reply #2 on: April 27, 2013, 07:58:36 AM »
Following things can be done for preventing your PHP Form from Hijacking

1. Make register_globals to off to prevent Form Injection with malicious data.
2. Make Error_reporting to E_ALL so that all variables will be intialized before using them.
3. Make practice of using htmlentities() strip_tags() utf8_decode() and addslashes() for filtering malicious data in php
4. Make practice of using mysql_escape_string() in mysql.

Please let me know if anyone has something more to add in this.

I was also looking for the PHP Hijacking solutions and your suggestions are good enough and thanks for these but I want more things to save my developed website in PHP. I'll also share my solutions.
Solufy - Maximo Planning & Maximo Scheduling Software. Maximo Timesheet
Management software also useful

Offline GraceMurray

  • Jr. Member
  • **
  • Posts: 38
    • View Profile
Re: How to prevent form hijacking in PHP?
« Reply #3 on: May 08, 2013, 05:10:41 AM »
You can use captcha class to prevent form hijacking

Offline savniambekar

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to prevent form hijacking in PHP?
« Reply #4 on: April 02, 2019, 05:12:18 AM »
Use captcha class to prevent from hijacking in PHP

Webmaster Forum

Re: How to prevent form hijacking in PHP?
« Reply #4 on: April 02, 2019, 05:12:18 AM »