Actually, you don't need to read this to use TheFactBook
The very first lines of code which was part of TheFactBook date from 2013. However, most of it was rewritten. By the time it was vulnerable to SQL Injection so I have to learn a little about prepared statements. I found the w3schools site really helpfull. It was a page (no login was required) where you could add some text (then called Fact) and an url (then called Source) by means of an HTML form, then we stored that info into a basic table in a MySQL database, that was all.
Then I had to face a problem with SPAM, even a personal site (maybe one of the smallest sites in the whole web) has to deal with this problem. I had a number of robots whishing to post their links here and there around the site and some robots (I think so) trying to inject SQL in order to drop my tables (yes, I know it sounds really stupid, but there was 'people' trying to do it). By the time I used reCaptcha api (the omniprescent Google machine). Then I realized that every third party that I use in order to put our site more sofisticated (reCaptcha api | MathJax | JQuery) or more beautiful (Google Fonts) was hurting the privacy and the data of my reduced and loved amount of readers. It was really sad when I saw that wordpress require a lot of third party content (Google api) (for our Divagatec Blog) and trying to get rid of it is a little sloppy (I did not do that). I solved the problem (reading about simple ideas to avoid SPAM) using a hidden field in a form that most browsers would not render but automated scripts see and want it to fill (call it Url, what spam-oriented robot do not want to fill that?)
Well it was a lot of introduction for a funny application, so you can taste TheFactBook too.
sat jul 4 00:15:05 COT 2015
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 Colombia License.
I'm committed to the privacy of k-lab users. Each time you access content delivered by http://www.k-lab.tk/, information like referrer, anonymized IP (255.255.X.X), date, time and requested resources are sent to a Google Analytics. This is done in order to know user preferences to adapt our content for users needs and to detect failures in the website. However, respecting your decision we don't store any of this information if you have enabled Do Not Track option in your web browser (Preferences/Privacy/Tracking/Tell Websites I do not want to be tracked). Protect your privacy.