{"id":1134,"date":"2011-10-22T19:02:07","date_gmt":"2011-10-23T02:02:07","guid":{"rendered":"http:\/\/xiehang.com\/blog\/?p=1134"},"modified":"2011-10-22T19:02:07","modified_gmt":"2011-10-23T02:02:07","slug":"captcha","status":"publish","type":"post","link":"https:\/\/xiehang.com\/blog\/2011\/10\/22\/captcha\/","title":{"rendered":"Captcha"},"content":{"rendered":"

I built a captcha<\/a> for a friend a while back for a shopping site, obviously it was too simple to be corrupted so I built this new one<\/a> last night. It was not perfect though, as I don’t have enough knowledge to create dynamic fonts.<\/p>\n

Under Ubuntu it is easy to get things work – install php5-gd, luckily it brought couple of fonts and then the script works like a charm. Under my friend’s machine I need to install some extra packages to get TrueType fonts, but it is not that hard.<\/p>\n

Let’s see how this works, I believe the captcha is a little bit hard to be read, but it can block spammers.<\/p>\n","protected":false},"excerpt":{"rendered":"

I built a captcha for a friend a while back for a shopping site, obviously it was too simple to be corrupted so I built this new one last night. It was not perfect though, as I don’t have enough knowledge to create dynamic fonts. Under Ubuntu it is easy to get things work – […]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[225,226,72,136,44,227],"_links":{"self":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1134"}],"collection":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/comments?post=1134"}],"version-history":[{"count":1,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1134\/revisions"}],"predecessor-version":[{"id":1135,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/posts\/1134\/revisions\/1135"}],"wp:attachment":[{"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/media?parent=1134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/categories?post=1134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xiehang.com\/blog\/wp-json\/wp\/v2\/tags?post=1134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}