Salah satu Captcha yang sering yang dipakai yaitu CAPTCHA google. Captcha google sanggup diakses pada alamat ini.
Pada tutorial ini akan dibahas mengenai aplikasi captcha google pada CMS Jurnal Versi 2 maupun Versi 3. Langkah pertama silahkan mendaftar captcha pada google reCaptcha. Caranya cukup gampang yaitu cukup mempunyai email google saja. tampilan awal ibarat gambah dibawah ini:

Langkah pertama masuk pada menu Admin Console.

Tambahkan Captcha pada tanda +

Isilah semua form yang ada diatas.
Setelah itu akan muncul 2 code ibarat berikut

Site Key itulah yang akan kita copy ke konfigurasi OJS.
Konfigurasi pada CMS OJS dengan merupah konfigurasi pada file config.inc.php.
Konfigurasi Pada OJS 2 Sebegai berikut:
Carilah baris 408, detail script sebagai berikut:
;;;;;;;;;;;;;;;;;;;;
; Captcha Settings ;
;;;;;;;;;;;;;;;;;;;;
[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 = /usr/share/fonts/truetype/freefont/FreeSerif.ttf
; Whether to use reCaptcha instead of default Captcha
recaptcha = on
; Version of ReCaptcha to use: 0: Legacy (default), 2: ReCAPTCHA v2
recaptcha_version = 2
; Public key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_public_key = 6LdQrb8UAAAAAGB
; Private key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_private_key = 6LdQrb8UAAAAADI
; Validate the hostname in the ReCaptcha v2 response
recaptcha_enforce_hostname = Off
---------------------------------------------------------------------------------------------------------------
Lakukan konfgurasi sesuai script diatas, jangan lupa memasukkan recaptcha_public_key dan recaptcha_private_key yang sudah kita buat pada google recaptcha.
Kemudian Save konfigurasi tersebut.
Hasilnya ibarat berikut:

Selesai.
Pada OJS 3 lakukan konfigurasi ibarat berikut, masih tetap file yang sama ya (config.inc.php)...
Konfigurasi Pada OJS 3 Sebegai berikut:
Carilah baris 426, detail script sebagai berikut:
---------------------------------------------------------------------------------------------------------------
;;;;;;;;;;;;;;;;;;;;
; Captcha Settings ;
;;;;;;;;;;;;;;;;;;;;
[captcha]
; Whether or not to enable ReCaptcha
recaptcha = on
; Public key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_public_key = 6LcP1b8U
; Private key for reCaptcha (see http://www.google.com/recaptcha)
recaptcha_private_key = 6LcP1b8U
; Whether or not to use Captcha on user registration
captcha_on_register = on
--------------------------------------------------------------------------------------------------------------- Lakukan konfgurasi sesuai script diatas, jangan lupa memasukkan recaptcha_public_key dan recaptcha_private_key yang sudah kita buat pada google recaptcha.
Kemudian Save konfigurasi tersebut.
Hasilnya ibarat berikut:

Selesai.
Semoga bermanfaat.
Tidak ada komentar:
Posting Komentar