Implement recaptcha at contact form and force SSL

Laraship QuestionsCategory: ConfigurationImplement recaptcha at contact form and force SSL
gvw asked 6 years ago
hi, how can I use recaptcha in my contact form and how can I USE SSL, I have set it on my hosting https:://vision.to but how set i it in the cms
3 Answers
laraship Staff answered 6 years ago

Hello,

There is no need for any action for SSL as Laraship is https ready, I also see your site is already with SSL and its secured https://vision.to/

Regarding contact form captcha implementation we suggest that you can implement this.

https://github.com/anhskohbo/no-captcha

laraship Staff answered 6 years ago

Laraship uses CSRF which will protect site from cross site requests, so there is really no need for recpatcha implementation,

https://laravel.com/docs/5.6/csrf

laraship Staff answered 6 years ago

If you want to force https you can add the following code to public/.htaccess file

RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$

RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://vision.to/$1 [R=301,L]