This is my website http://www.isacimages.com.au
This is my form "General" no other tabs have been entered.

Many thanks MGD4em. I would like to try the showing of the senders IP address as you do. How do I implement that?MGD4me wrote: Mon Mar 22, 2021 4:28 pm At a minimum, you would want to add a captcha to help reduce 'bots' from finding your contact form and hammering it to death. I have been using recaptcha2, with some success.
On my Contact form, I also display the IP address of the client (and city look-up) to 'tell' the potential spammer that "I already know where you live".![]()
If the spammers are 'real people' just playing havoc with your site, that is fairly hard to control, because they have little else better to do.
If your business is limited to Australian clients, you could consider banning all IP addresses to your site which are NOT originating from inside the country. If you accept 'outside' commerce, then your server could be configured to ban several countries like Russia, China (or, wherever your business does not serve).
Code: Select all
<?php
$data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=" . $_SERVER['REMOTE_ADDR']));
$city = $data->geoplugin_city; // look up city location
echo "Your IP address is: " .
$_SERVER['REMOTE_ADDR']. "  " . "(" . $city . ")" ;
?>
Cheers Colin. I have obtained 2 new domain names with the ".COM" so I won't have ABN issues anymore. After that's all set up I will try and work out the spam issues. I have new email addresses so a bit of work to do. Cheers, GregColinM wrote: Thu Apr 15, 2021 2:28 am Hi Greg, I think you'll find that you still need an ABN (or acceptable alternative) for a .net.au domain. I've just checked a dummy .net.au with my Registrar and that is certainly the case.
Much appreciated, When I get the sites up and running on the new domains I'll giv this a try. Many thanks!MGD4me wrote: Thu Apr 15, 2021 4:58 am @gregbarnes Use the 'Insert >> HTML' function to create a text box where you want this note to be displayed. Open the HTML Properties and insert the following code:Your Contact page properties must use php file extension, since this is php code. The code will display the user's IP address AND city.Code: Select all
<?php $data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=" . $_SERVER['REMOTE_ADDR'])); $city = $data->geoplugin_city; // look up city location echo "Your IP address is: " . $_SERVER['REMOTE_ADDR']. "  " . "(" . $city . ")" ; ?>
You're welcome Greg - have fun!gregbarnes wrote: Sun Apr 18, 2021 2:48 amCheers Colin. I have obtained 2 new domain names with the ".COM" so I won't have ABN issues anymore. After that's all set up I will try and work out the spam issues. I have new email addresses so a bit of work to do. Cheers, GregColinM wrote: Thu Apr 15, 2021 2:28 am Hi Greg, I think you'll find that you still need an ABN (or acceptable alternative) for a .net.au domain. I've just checked a dummy .net.au with my Registrar and that is certainly the case.