Archive for July, 2007

Whatsthetide.com Version 2 has gone Gold!

Lightweight Javascript Cookie Functions

getCookie(), setCookie(), deleteCookie() ; setCookie() is just like PHP! :)

http://snipplr.com/view.php?codeview&id=1092 

CSS Bubble Tooltips…

We all know that 200kb of javascript libaries that do nothing just slow down your users…

http://web-graphics.com/mtarchive/BubbleTooltips.html

I love this… look at the source code… no javascript script, and the css is short but sweet!

24hour to 12hour time…

I needed this for the upcoming release of http://www.whatsthetide.com

Base64 Encoded (Makes it easy to cut and paste):

PD9waHAKZm9yKCRpPTA7JGk8MjQ7JGkrKykKewoJaWYoJGk9PT0
wKQoJewoJCWVjaG8gJzEyJzsKCX0KCWVsc2VpZigkaT4xMikKCXsKCQ
llY2hvIGFicygxMi0kaSk7Cgl9CgllbHNlCgl7CgkJZWNobyAkaTsKCX0KC
WVjaG8gJygnLiRpLicpPGJyIC8+JzsKfQo/Pg==

License?

This code was written by Steven Roddis and has been placed in the public domain.

Live in Australia? Like [in]Security?

A few friends and I are planning to organise an IT Security event, if you live in Australia, shoot me an email, and we’ll get talking.

Bad Behavior doesn’t follow RFC 2616!

Have a look that this source code:

// Lowercase via is used by open proxies/referrer spammers
// Exceptions: Clearswift uses lowercase via (refuses to fix;
// may be blocked again in the future)
if (array_key_exists(’via’, $package['headers']) &&
!strstr($package['headers']['via'],’Clearswift Web Policy Engine’)) {
return “9c9e4979″;
}

Hm….

4.2 Message Headers

   HTTP header fields, which include general-header (section 4.5),
   request-header (section 5.3), response-header (section 6.2), and
   entity-header (section 7.1) fields, follow the same generic format as
   that given in Section 3.1 of RFC 822 [9]. Each header field consists
   of a name followed by a colon (”:”) and the field value. Field names
   are case-insensitive. 

Well, it seems that: Clearswift, Coral CDN, etc are getting blocked because of this…

If you use Bad Behavior let me know you experiences with it, and if this is affecting you, you might want to contact them.

Recent Comments

  • Josir Gomes: Hi Steve, the meta-package ubuntu-desktop is bloated with huge softwares like OpenOffice, Evolution,...
  • hannah: your that good! ha ha, but seriously.
  • Wiras Adi: Yeah, mathematic operation in text-based CAPTCHA is very easy to break. And I don't think that many sites...
  • Gary: Phew! You saved me lots of hassle :-) The only problem I had was that $_SERVER[’HTTP_AUTHORIZATION ’]...
  • Stephen: To touch on the issue Vinay raised, I had to use the -wholename option on the find command to delete files...

Else wheres