OK, It seems that everybody comes to the same problem, and always all previous solutions do not work.
So I operate OJS on GoDaddy Linux server. Just to repeat again, do not install on Windows server, OJS will operate extremely slow taking 40-50s to load a page. So now let me explain what appear to be the problem - all previous solution say that the font location should start with /usr/ or
http://www.yourdomain.com./ojs/... All of this did not work. The path should be set relatively to the location of the config.inc.php file, at least for GoDaddy Linux server. I created within the /ojs folder another one called /font and I put inside freeserif.ttf. The code looks like this:
- Code: Select all
[captcha]
; Whether or not to enable Captcha features
captcha = on
; Whether or not to use Captcha on user registration
captcha_on_register = on
; Whether or not to use Captcha on user comments
captcha_on_comments = on
; Whether or not to use Captcha on notification mailing list registration
captcha_on_mailinglist = on
; Font location for font to use in Captcha images
font_location = /font/freeserif.ttf
Notice that the path does not need ojs. because we start from ojs where the config file is located. Then, just to mention that if you have trouble with finding freeserif.ttf file you can go to your windows/font directory and then copy any .ttf font that you like. i tried arial.ttf and if you upload arial.ttf it will work just fine. The reason to use freeserif however is because the letters are smaller and on the CAPTCHA code smaller letters will be harder to be analyzed by spam bot, if it has OCR systems, or whatever. So if you do not freeserif or you cannot donload it from somewhere, or you don't have time for that, then just go to your windows/font directory and choose some difficult to be read .ttf font with small letters possibly handwritten, etc. I hope this helps the next user who reads this topic.