Page 1 of 1

Add JotForm to Site Down Message to get customer IP address

Posted: Sat Jun 25, 2022 11:28 am
by Simon66
So I develop all my sites online, usually at the domain/hosting of the webhost I use for all my sites.
(Sometimes I use a staging domain in my bulk hosting if a site already exists).
I'm too lazy to set up my own personal server and faff about with moving it when it's finished.

Therefore I use 'Maintenance Mode' all the time.
I've tried using marketing pages for my business as the 'Down for Maintenance' page. But I usually end up with Down for Maintenance text - the default.

The other problem I have is getting clients to send me their IP address, so I can add them to the IP exclude list. Some client are OK, but some just don't get it. (Even with detailed instructions and a link).

So I just added a jotform.com form with a single name field. It's free if you have under 5 forms.
Image

In the form settings you can choose to include the senders IP address in the form submission.

Image

Embeded the form into the Site Down Message:

Code: Select all

<__script__ type="text/javascript" src="https://form.jotform.com/jsform/22175"></__script>Concept Factory Pty Ltd
So much simpler than building my own IP collecting form!

Re: Add JotForm to Site Down Message to get customer IP address

Posted: Wed Jun 29, 2022 7:27 am
by creopard
A very nice solution.
What are the underscores good for in

Code: Select all

<__script__ 
and

Code: Select all

</__script>
?

Re: Add JotForm to Site Down Message to get customer IP address

Posted: Wed Jun 29, 2022 7:51 am
by Simon66
Not sure.
I copied it from a similar post I did on the Slack channel. I think Slack must have added them.
The code should be:

Code: Select all

<__script__ type="text/javascript" src="https://form.jotform.com/jsform/221752305"></__script>Concept Factory Pty Ltd
I just added it here (above) from my Global Settings/Maintenance Mode page and it look like it's this forum that is adding the underscores.

Re: Add JotForm to Site Down Message to get customer IP address

Posted: Wed Jun 29, 2022 7:55 am
by Jo Morg
It's has to, there was no easy way to escape HTML code and we had the forum defaced a few times because of some posts with code snippets. Most long time users are already aware that the underscores are to be ignored :).