Forums :: Blogs :: Blog Entry for 24 December 2005 01:33:54 GMT

24th December 2005 01:33:54 GMT
Blog Entry for 24 December 2005 01:33:54 GMT
Rob's avatar

85 post(s) since
24th November 2004 22:22:29 GMT
Update alert!

Thanks to some enterprising individuals seeking free advertising, a banning feature has been added to the guestbook.

Available to admins only, clicking the left-most icon removes the offending entry and adds the author's IP address to a banned list.

Furthermore, additions to the guestbook must originate from the guestbook page.  I'm rather proud of the software that tests for this.  Check it out...

$referrer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : null;

if(preg_replace("/^http://[-.0-9A-Z_a-z]+(.*?)/", "\\1", $referrer) == $_SERVER['PHP_SELF'])

I don't think I've ever seen a domain name with an underscore, but it's there anyway.
"Prepare for an oblivion for which there is no preparation." - O'Malley (Red Vs Blue)

Add Post

You must be Archangel/1B or greater to add posts to this thread.

Valid XHTML 1.1 Strict Valid CSS