• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handle user abuse

#1
[eluser]olof84[/eluser]
How should I handle forbidden user actions in a CI project?

For example:
Code:
try {
     if($action == 'forbidden')
     {
          throw new exception('Forbidden action!');
     }
} catch (Exception $e)
{
      show_error ($e->getMessage(), 500);
}

The example above will call the general_error.php site which has an static header text (in my case: 'Sorry an error happened'). This dose not seem like the best way to handle user abuse.

Further more the example above will not log the user abuse.


Messages In This Thread
Handle user abuse - by El Forum - 08-15-2014, 04:43 AM
Handle user abuse - by El Forum - 08-15-2014, 08:38 AM
Handle user abuse - by El Forum - 08-18-2014, 10:12 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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