How to connect form with reCaptcha to Google spreadsheet - google-sheets

I have a form set up to connect its responses to a Google spreadsheet, but it is of late getting some spam, all of a very similar type. I cannot pin down the IP addresses like I usually do, to exclude them from the site, so I am trying to institute Google reCaptcha.
The submit button for the form as it is without reCaptcha is this code:
<input type="submit" name="submit" value="Send me the magazine" id="ss-submit" class="jfk-button jfk-button-action ">
The reCaptcha instructions say to use this for your button:
"Paste this snippet at the end of the <form> to create a button protected by reCAPTCHA. You will need to create a callback function to handle the result."
<button class="g-recaptcha" data-sitekey="SiteKeyHere" data-callback="YourOnSubmitFn">Submit</button>
I am not sure how to integrate the two buttons, if it is possible. I don't know what to do to "create a callback function to handle the result" as mentioned in the reCaptcha instructions. If you please could help me to understand this, I would be grateful.
Thank you.

Physically you can't. The office standard just won't have this enabled.
As far as I know reCaptcha only works on php type sites, not in an office file.
You can however set your spreadsheet to invite only.

Related

Insert Affiliate tracking link into my HTML

i'm new into Marketing and i got an opportunity to offer a few products in my web site. The company that i had the offers from sent me this Tracking Link: https://adswapper.g2afse.com/click?pid=210&offer_id=586&sub1={clickid}&sub2={pid}&sub3={subsource}&sub4={device_id}&sub5={app_name}
How do i add that in to my website? So when the customer click on the offer the tracking link would work in between the action and the Main link final uRL which is https://www.audiobooks.co.uk/signup
Thanks
You can use a hyperlink for this
Click here
You're Welcomed if this helps!!
So to be more specific the Advertisers gave me the HTML for the campaign and i wanna to know where to insert the TRACKING LINK i will be using into the HTML.
<a href="https://www.audiobooks.co.uk/signup" target="_blank">
So when the clients click on that link i need to collect the information using that TRAKING LINK the AdSwapper has which is https://adswapper.g2afse.com/click?pid=210&offer_id=586&sub1={clickid}&sub2={pid}&sub3={subsource}&sub4={device_id}&sub5={app_name}
Thanks for the help, i'm new on this

LastPass - What exactly does this do "Respect AutoComplete=off: allow websites to disable Autofill"

It's a setting inside LastPass. There are settings where you can turn on and off autofill, but I have no idea what this does. I'd appreciate it if someone could educate me on this.
If a website uses something like this:
<input type="password" id="passwordP" class="form-inputText"
placeholder="Password" autocomplete="off" onfocus="pwdFocusP();">
Note the autocomplete keyword.
If you leave that option
Respect AutoComplete=off: allow websites to disable Autofill
in LastPass off it supposedly will not respect the site developer's request for a manual entry (or copy/paste of the value).

Submit webform via URL only?

I'm not really sure this belongs here, so instead of downvoting just lemme know if so and I'll quickly move it on.
Anyway, there is a website that has a search page, that when hitting the search button it doesn't include the search query in the URL.
After searching for something, the page is redirected to ssearch.asp, but as said, the query isn't there.
My question is if there is a way to submit the search values solely via URL.
I was wondering if there is a way to fake the search-submit button and post the search term
via URL according to form field names.
The name of the input box is search, so I tried this URL: http://www.torec.net/ssearch.asp?search=query, but it doesn't work, the server returns:
server error.
Just to be clear, I'm not looking for a server-side solution, and actually nor for a HTML solution, I just want to be able to paste a plain old URL in my browsers address bar and be there.
Is this possible?
Update
This link doesn't work:
http://www.torec.net/ssearch.asp?search=dark&page=1
While this one does:
http://www.torec.net/ssearch.asp?search=dark&page=2
Any way to bypass this?
Sometimes servers conflate GET and POST parameters, as in PHP $_REQUEST hash. However, normally they are separate - and a server that expects its parameters in multipart/form-data might not look at URL at all. In such a case, as it seems to be here, you have to construct a POST request. On the client side you can do it through AJAX or through constructing and posting a form; on the server side, you can use curl, or a library. You did not say what you want to use it for (and where you want to use it), so you just get the general answer, I'm afraid.
EDIT: Here is the JavaScript semi-solution. You have to already be on some page (i.e. can't use it on _blank), and I'm not sure if it works on all browsers.
javascript:d=document;f=d.createElement("form");h=d.createElement("input");f.setAttribute("method","post");f.setAttribute("enctype","application/x-www-form-urlencoded");f.setAttribute("action","http://www.torec.net/ssearch.asp");h.setAttribute("type","hidden");h.setAttribute("name","search");h.setAttribute("value","query");f.appendChild(h);d.body.appendChild(f);f.submit();
Edit: It is not possible to create a link directly to the first page. However, you can easily send a user to the first page by by creating a form:
<form id="postForm" method="post" action="http://www.example.com/search">
<input type="text" name="search" value="q">
</form>
And then submitting the form whenever the user clicks a psuedo-link:
document.getElementById("postForm").submit();
This can also be done by typing JavaScript code into the address bar:
javascript:a=document.createElement("form");a.method="POST";a.action="http://www.torec.net/‌​ssearch.asp?search=dark&page=2";i=document.createElement("input");i.name="search";i.value="q";a.appendChild(inpu‌​t);a.submit();

Is there a way to launch a Twitter dialog for sending direct messages?

Is it possible to open a Twitter dialog page to send direct messages, in the same way that one can share something on Twitter by launching this url:
http://www.twitter.com/share/?text=hello+this+is+a+test+message&url=
I would like to avoid having to use the Twitter API (with api key) if possible for this project, but after searching around I'm getting the feeling I have no choice.
Thanks!
There are a couple of ways to accomplish this.
Create an empty official DM dialog. It does not appear to support pre filling with text:
https://twitter.com/#!/direct_messages/create/twitter
Load the full Twitter homepage with pre filled text. Uses the sms shorthand for sending a DM:
https://twitter.com/home?status=d+twitter+msg+goes+here
Load the new Intent interface with pre filled text using the SMS shorthand:
https://twitter.com/intent/tweet/complete?text=d+twitter+msg+goes+here
<a rel="nofollow" target="_blank" href="#" onclick="window.open('http://twitter.com/intent/tweet?text=your_text&url=your_url','tweet','height=300,width=550,resizable=1');return false;">tweet this</a>
Will bring up a tweet dialogue with specified your_text and your_url.
I'm not sure of a URL to use, but there are sites that provide the service like http://twitterdmer.com/ and http://www.socialoomph.com/
Twitter's interface allows for sending direct messages by using either of these formats:
D <username> <text>
M <username> <text>
Read more: https://dev.twitter.com/docs/faq#6521

Google Analytics - referal address - utmr field

I would like to craete a link to other page but without letting know Google Analytic (GA) that user is comming from my site. So field "utmr" need to by empty (0 | - ) and it must looks like user will enter www address in browser. Is there a any way that GA will not be able to read source website’s address?
<a href="http://domain.com/a.html" > Destination A </a>
Destination A with rel
<a href="#" onclick="javascript:location.href='http://domain.com/Javascript.html'" > Destination javascript </a>
I have tried javascript, a html tags but with no success :/ Any help will be appreciated.
--
Jacek
Check out the answers here PHP - Referer Redirect Script.
Basically, you cannot do this without having a site, such as DontKnow.me or LinkAnon to do a redirect. You can create your own script to do it but yea, it will still show coming from your site.
I would really take a look at that PHP Post though, it has great information regarding this and why you cannot do it.
EDIT
However, if you have control of the page you are redirecting to, you can probably find some method to override that setting if the referer is coming from your site. But that is assuming you have control over the site you are redirecting to.

Resources