Welcome Guest, Not a member yet? Register   Sign In
Sesssions w/ DB - Block IP Address?
#1

[eluser]Unknown[/eluser]
Hello,

I am using CI Sessions w/ DB and I am trying to block one ore more IP addresses from ever being a session created for or recorded in the database.

Our webserver is being monitored, so every couple of minutes a new session is being created and recorded in the DB for the monitoring agent.

It's really more annoying than anything else.

Any suggestions on how to do that?

Thanks,
Greg
#2

[eluser]tomcode[/eluser]
Extend the session class and overload the sess_create() method, where You add an IP check

or don't autoload the session class, do the IP check first, You might do it in a hook




Theme © iAndrew 2016 - Forum software by © MyBB