I Modded the security of the Contact Plugin

Post Reply
spd2612
Forecaster
Forecaster
Posts: 192
Joined: Thu Jan 23, 2020 4:00 pm
Location: Jonesboro Ar
Station model: Davis Pro 2
Software: Meteobridge Pro 2
Contact:

I Modded the security of the Contact Plugin

Post by spd2612 » Wed Oct 06, 2021 7:36 pm

The contact plugin was getting me allot of spam so I changed it too what I know works on my sites

I left the ROBOT tick box but it does no longer have to be checked
by adding this to contact/index.php
This makes it easy to re enable IT IS ADDED ALREADY
#############################################################
function verifyCaptcha(formId){
if($(formId).attr('captcha') == 'true'){
return true;
}
//return false;
return true;
################################################################
You have to enter the word WEATHER in the new robot place holder or you will get returned to main page and comment will not go thru.
If you enter it you will get a confirmation popup
If you want to change the word, search the index and send feedback its listed once in index.php and 2 times in sendfeedback.php
This makes it much harder for the bots to spam you
the attached zip contains the 2 files needed to make this mod just back up the plugin then replace the 2 files with the one in the zip
Screen Shot
Screen Shot
contactMod.jpg (40.06 KiB) Viewed 13195 times
CONTACT_MOD.zip
(3.16 KiB) Downloaded 760 times
Image

Davis Pro 2
Meteobridge Pro2

GW 2000
WH57 Lightning Detector

User avatar
Daali
Advisor
Advisor
Posts: 56
Joined: Mon Jul 26, 2021 8:06 pm
Location: Georgia, US
Station model: Ecowitt GW1002
Software: Meteobridge, FOSHKplugin
Contact:

Re: I Modded the security of the Contact Plugin

Post by Daali » Thu Oct 07, 2021 12:52 am

Good job! Thanks!
https://www.jeffersonweather.com
GW1000 gateway
WS68 Anemometer
WH40 Rain Gauge
WH32 Temp/Hum
WH57 Lightning
WH41 PM2.5 Air Quality
WH45 PM2.5/10/Co2 Air Quality
WN34S Soil temperature
WH31SM Soil Moisture

Post Reply