• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prevent HTTP verb tampering

#1
What is the proper way to prevent HTTP verb tampering in CodeIgniter 3 so that except POST and GET other HTTP methods are not allowed?

I have used 


Quote:if ($_SERVER['REQUEST_METHOD'] != ('POST' || 'GET')) {
exit(0);
}


Or should I go for configuring the web server to allow only required HTTP methods ?
Reply


Messages In This Thread
Prevent HTTP verb tampering - by june123 - 07-06-2017, 01:41 AM
RE: Prevent HTTP verb tampering - by skunkbad - 07-06-2017, 07:43 AM
RE: Prevent HTTP verb tampering - by june123 - 07-06-2017, 07:16 PM
RE: Prevent HTTP verb tampering - by skunkbad - 07-06-2017, 08:38 PM
RE: Prevent HTTP verb tampering - by june123 - 07-06-2017, 10:45 PM
RE: Prevent HTTP verb tampering - by skunkbad - 07-07-2017, 12:35 AM
RE: Prevent HTTP verb tampering - by Narf - 07-07-2017, 02:00 AM
RE: Prevent HTTP verb tampering - by june123 - 07-07-2017, 03:11 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.