If this blog helped you in any way, please donate a dollar here

Showing posts with label Security. Show all posts
Showing posts with label Security. Show all posts

Thursday, July 10, 2014

Client IP based session validation in OpenAM

In Single Sign On (SSO), the cookie itself is the sole mode of validation for most systems.

With OpenAM, one can assign extra attributes to the session other than the cookie. Validation based on client IP addresses can be done as well. What this means is that, when the IP address changes of an user, the user has to login to OpenAM (or Relying Party/Service Provider )  again, since his session is no longer valid for the IP.

So this is how one would do this:

Go : Configuration -> Server & Sites -> Default server settings

 Then to advanced:

Friday, August 6, 2010

Captcha in PHP

Writing a custom captcha for your website is a fairly easy task with the PHP GD Library.

The GD Library is a graphics library that enables to draw (and generate) graphics. This output can be done on any of the standard image file formats.

In my example I choose to create a PNG file that will be displayed in my registration page. So the first piece of code I need is somthing like this: