Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB