DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => Completed Modules for version 1.x.x => Topic started by: Danodemano on January 16, 2011, 12:53:15 PM



Title: reCAPTCHA anti-spam for petition.php
Post by: Danodemano on January 16, 2011, 12:53:15 PM
My first released module to DragonPrime (though I have written quite a few).  The concept is fairly simple, it uses reCAPTCHA to all but eliminate SPAM from your petitions.  You will have to register (free) at http://www.google.com/recaptcha/whyrecaptcha (http://www.google.com/recaptcha/whyrecaptcha) to get your public and private keys.  The settings should be fairly straightforward.  Please let me know if you have questions/comments or find any bugs!


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Talisman on January 16, 2011, 02:35:41 PM
Thanks for sharing the module with us.

Please note, however, that the only license under which the module can be released is the CCL license.  I noticed in your file notes that you state you're releasing it under the GNU license.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Danodemano on January 16, 2011, 04:01:27 PM
Thanks for sharing the module with us.

Please note, however, that the only license under which the module can be released is the CCL license.  I noticed in your file notes that you state you're releasing it under the GNU license.

Oops, I don't know what I was smoking there.  I updated the file in the OP, sorry about that.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Talisman on January 16, 2011, 05:56:47 PM
Thanks for sharing the module with us.

Please note, however, that the only license under which the module can be released is the CCL license.  I noticed in your file notes that you state you're releasing it under the GNU license.

Oops, I don't know what I was smoking there.  I updated the file in the OP, sorry about that.

Much appreciated!


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: backflip on January 17, 2011, 09:47:06 AM
Hi, and thanks for sharing! I already thought about adding reCAPTCHA, but then decided it wasn't worth the hassle and went with a normal blocker instead (that also features the "hidden" fields). Just a few things:
Code:
$info = array(
"name"=>"Spam blocker - petition.php",
"version"=>"1.0",
"author"=>"Eric Stevens",
"category"=>"Administrative",
"download"=>"core_module",
"settings"=>array(
'hidden_reqname'=>"Name of hidden field which must be populated,|".md5(getmicrotime(true).e_rand()),
'hidden_reqvalue'=>"Value of hidden field which must be populated,|".md5(getmicrotime(true).e_rand()),
'hidden_noname'=>"Name of hidden field which must NOT be populated,|".md5(getmicrotime(true).e_rand()),
'hidden_novalue'=>"Value of hidden field which must NOT be populated,|".md5(getmicrotime(true).e_rand()),
'spambottext'=>'Text to be displayed for potential spam bots:,textarea|'.$message,
)
);
I'm pretty sure you're not MightyE, and your module's also not a core module ;) Also, it's probably not necessary to call getmicrotime(), e_rand() and md5() five times for every time the module is queried - maybe add them once in the install function.
Code:
rawoutput("<p style='display: none;'><b>Please note, do not change these fields</b>, they are an anti-spam measure.  " .
"Most users will not see them; if you are seeing them though, then you're using a browser that doesn't recognize " .
"the attributes we use to hide them.  That's ok, just don't change their values!<br>" .
$input1 .
$input2 .
"</p>");
Maybe make it translation ready? Also, I can't seem to find where you actually insert the reCAPTCHA part, but maybe I missed that.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Danodemano on January 17, 2011, 10:30:08 AM
GOOD GOD I REALLY AM SMOKING SOMETHING!  I grabbed the wrong module from my modules directory.  I'm so sorry about that.  I replaced the file in the OP with the correct one this time, I think.  :/


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on April 18, 2015, 04:17:07 PM
Sorry to bring up an old thread but it doesnt submit petitions on 1.1.1...I know I should upgrade and support for 1.1.1 is optional but I just think it would be cool if this worked for all 1.x.x versions.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Aeolus on April 18, 2015, 04:22:46 PM
Sorry to bring up an old thread but it doesnt submit petitions on 1.1.1...I know I should upgrade and support for 1.1.1 is optional but I just think it would be cool if this worked for all 1.x.x versions.

1.1.1 and 1.1.2 only have minimal differences, there's a change log somewhere on DP showing this. I'm guessing there's an error with your implementation of it.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on April 18, 2015, 08:33:47 PM
Yea. After I got home from my errands and my backup downloaded and I looked over the file of what I took out for the string creator and the file that had it I saw and if statement I missed on taking out. I took it out and the closing bracket and now its all fine and dandy.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on April 19, 2015, 05:21:24 PM
I have a new question now. How do I stop the [recaptcha_challenge_field]= and the [recaptcha_response_field]= from displaying in the petitions? It serves no purpose to me. Its just a string of numbers. They can display in the database when the row for the petition is viewed. I just dont want it on site in the petitions. Thanks.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Nightborn on April 25, 2015, 07:22:12 AM
You can't suppress them without a core edit sadly, had the same issue with my captcha stuff =/


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Sunday on April 28, 2015, 11:05:31 AM
I have a new question now. How do I stop the [recaptcha_challenge_field]= and the [recaptcha_response_field]= from displaying in the petitions? It serves no purpose to me. Its just a string of numbers. They can display in the database when the row for the petition is viewed. I just dont want it on site in the petitions. Thanks.
Is this the body of the petition, where the player's message goes? Could you provide an example row of the issue? There should be a way of doing it without a core edit.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Aeolus on April 28, 2015, 03:35:31 PM
Is this the body of the petition, where the player's message goes? Could you provide an example row of the issue? There should be a way of doing it without a core edit.

By her last post, I'd assume that it's the body of the petition, that's being displayed in the Petition Viewer.

She could easily unset the keys 'recaptcha_challenge_fiel d' and 'recaptcha_response_field' in $_POST (which would require a core edit of petitions, and would completely remove it), but given that she wants it to stay in the database but not display in the body, she'd need regex to remove it from the body of the PV (which would require a core edit of viewpetition.php).


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Sunday on April 30, 2015, 05:11:11 PM
Is this the body of the petition, where the player's message goes? Could you provide an example row of the issue? There should be a way of doing it without a core edit.

[...]
but given that she wants it to stay in the database but not display in the body [...]

Did not read that bit. There is a very obfuscated way of getting around this, involving the everyhit-loggedin hook, a check of $session['user']['restorepage'], and a set of preferences (one to save the $session['user']['restorepage'], and one to save the original content of the petition being viewed), mixed with a few httpget() checks. But, I am not going to get into this one, since apparently, a core edit is needed. (/s :P) Have fun figuring that out, Megan!


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on April 30, 2015, 06:52:16 PM
I guess since I have to at least edit the viewpetitions or some part of the core to get rid of it all together, I think I'll deal with it being there. I did when I had the copy/paste string of text. But I never knew thats what that was until I put this module in. Something to think on in the future I guess.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on February 15, 2018, 01:49:11 PM
This module needs updating for recaptcha v2. V1 is being discontinued.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Aeolus on February 17, 2018, 08:32:02 AM
This module needs updating for recaptcha v2. V1 is being discontinued.

We thank you for your offer to update the code yourself for the good of the community.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Nightborn on March 26, 2018, 09:55:10 AM
You can drop most of the code and the library here though... here is a guide (google search for "recaptcha php", 3rd hit.

https://www.kaplankomputing.com/blog/tutorials/recaptcha-php-demo-tutorial/


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on March 29, 2018, 05:58:57 PM
I have sat here and tried to figure out how to change the code properly to affect v2. Its all written for v1 and that link you gave me looks way different in code than v1 does. I wouldnt even know what to change and where so I dont break something. Points in the right direction would be nice. This stuff is confusing me.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Aeolus on March 30, 2018, 05:19:57 PM
I have sat here and tried to figure out how to change the code properly to affect v2. Its all written for v1 and that link you gave me looks way different in code than v1 does. I wouldnt even know what to change and where so I dont break something. Points in the right direction would be nice. This stuff is confusing me.

So, is this another "tell me exactly what to copy and where to paste it" thing?


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on March 30, 2018, 10:58:20 PM
Taking a quick glance at this...and at petition.php for version 1.1.2 ...my take would be to take the following code and paste it between lines 95 and 96 in /lib/petition/petition-default
Code:
$response = $_POST["g-recaptcha-response"];
$url = 'https://www.google.com/recaptcha/api/siteverify';
$data = array(
'secret' => 'YOUR_SECRET',
'response' => $_POST["g-recaptcha-response"]
);
$options = array(
'http' => array (
'method' => 'POST',
'content' => http_build_query($data)
)
);
$context  = stream_context_create($options);
$verify = file_get_contents($url, false, $context);
$captcha_success=json_decode($verify);
if ($captcha_success->success==false) {
echo "<p>You are a bot! Go away!</p>";
} else if ($captcha_success->success==true) {

Doing it in that place would cause the else if curlies to match up properly so you should not get a parsing error.

The PHP code is right where Aeolus pointed to. (LOL, edit, Nightborn is the one who pointed...sorry Nightborn!!)

I just took out the first three lines of the posted PHP code since these items are already asked for within petition.php

i did not test this out myself...but you could try this...it should work or at least get you close.  I think.

Not the world's greatest at this myself, but it looks like it at least makes sense.

You do not get the submit button unless you pass the CAPTCHA the way I see it.

You will need one more close curly at the very end of the code, though.  In addition to what I posted above.

Right above the very last line of code.

I am not 100 percent certain, since I really just glanced at this...it could be the code above might be better in a different place within that file...but the file you want it in is /lib/petition/petition-default.php

Sarabeth, you should get yourself Notepad + or a similar code program...it helps with parsing the open and close curlies.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on April 01, 2018, 10:10:20 AM
I have sat here and tried to figure out how to change the code properly to affect v2. Its all written for v1 and that link you gave me looks way different in code than v1 does. I wouldnt even know what to change and where so I dont break something. Points in the right direction would be nice. This stuff is confusing me.

So, is this another "tell me exactly what to copy and where to paste it" thing?

I wouldnt have posted here at all if I figured it out or could figure it out. I only post when Im stuck. Instead of being difficult, help would be nice. Im going to try what TGTarheel said and see.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on April 01, 2018, 10:48:51 AM
I have sat here and tried to figure out how to change the code properly to affect v2. Its all written for v1 and that link you gave me looks way different in code than v1 does. I wouldnt even know what to change and where so I dont break something. Points in the right direction would be nice. This stuff is confusing me.

So, is this another "tell me exactly what to copy and where to paste it" thing?

I wouldnt have posted here at all if I figured it out or could figure it out. I only post when Im stuck. Instead of being difficult, help would be nice. Im going to try what TGTarheel said and see.

Let me know, SaraBeth.  I am not terribly good at this stuff either, and I often run into the same problem of not really getting help...if what you want is to be spoon-fed answers.  That being said...I think Nightborn here did point to some decent code on this.  But he didn't really tell you what to do with it.  

I can appreciate what some are trying to do...to help you learn...but...often, they don't give you enough to really be helpful...and sometimes, some here are not very nice in how they go about it.

I make no guarantees on what I posted, I really did just glance at it.  But I think it would at least be on the right track.  I am reasonably sure that your coding changes will want to be in the file I specified though, if that is any help to you.

If it does not work, then perhaps we two could brainstorm on this a bit more and see if we can figure it out between us.  Two heads are better than one.
Then again, we might be the blind leading the blind.  LOL.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on April 01, 2018, 11:37:00 AM
I really think its better to just edit the module that is here because you cant put a div code in that file you told me to edit. I got an error and you need it in there to display the widget and also you need another code that would have to be applied to EVERY template if you didnt edit this mod. I think we just need someone to give pointers.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on April 01, 2018, 02:12:10 PM
I really think its better to just edit the module that is here because you cant put a div code in that file you told me to edit. I got an error and you need it in there to display the widget and also you need another code that would have to be applied to EVERY template if you didnt edit this mod. I think we just need someone to give pointers.

Well, there ya have it.
either you can't do what needs to be....or, as I suggested, my placement in that file isn't quite right.

I am not sure why it would not work, exactly...so now would be a ood time for you to tell us what sort of errors you got...did you get a call stack?


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on April 01, 2018, 03:42:07 PM
Nope. When I placed it exactly how you said all it did was post the you are a bot part at the top of the page. No widget or error.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on April 01, 2018, 04:52:45 PM
So there is not a problem with the code itself then....it just is not doing what we want.  This means there is something that needs to be worked on.

Not sure what...I have never worked with CAPTCHA.

Can we have some examples of modules/files where CAPTCHA works with the old version...it could give some clues as to how to proceed.

The code itself is not in error in any way, it recognizes everything.

Th e problem is that it doesn't do what we want....meaning it needs to go somewhere else...or some variable is not reading correct or setting correct.

My point being...sometimes...what we just got...is more progress than it looks like.

W just need to figure out why you are failing the variable...without being given a chance to pass it.

For that, I would try to Google usage of CAPTCHA in HTML...since this is likely to be an HTML function, as it displays in a web browser...and not necessarily PHP


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Aeolus on April 01, 2018, 06:22:14 PM
Nope. When I placed it exactly how you said all it did was post the you are a bot part at the top of the page. No widget or error.

What have you tried? Where have you tried it? Or are you wanting us to give you an exact answer so you don't learn?


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Sunday on April 01, 2018, 06:32:00 PM
Nope. When I placed it exactly how you said all it did was post the you are a bot part at the top of the page. No widget or error.

What have you tried? Where have you tried it? Or are you wanting us to give you an exact answer so you don't learn?

She tried pasting the code example from TGTarheel between lines 95 and 96 of her modified default petition page.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on April 02, 2018, 01:10:01 AM
The fact that the code threw no errors is a good start, but since it is obviously not having the desired effect...it means, either it is not in the correct place...or a variable is not setting correctly, causing it to fail before it gives you a chance to pass.

I do not know a lot about this...never have actually worked with CAPTCHA.  I just grabbed the code example that was on the page Nightborn referenced...took out a few variable lines at the top of it...which are already called for elsewhere in the module...and then tried to figure the logical place to put it...and then worked with the parsing of the curly brackets.

It might be helpful to see a module that incorporates the old CAPTCHA....to see what it actually does....and work from that point.  I dunno...I admit I am sorta the blind leading the blind on this...


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Wolfsbanewillow on April 03, 2018, 08:44:20 AM
Guys, I can't help with coding this thing. But perhaps you also should be aware of the following thing: if you only give a visual challenge as captcha to solve, you will exclude the visually impaired users of your game. They won't be able to send in a petition if only visual challenges are available. Screenreaders won't tell us which animal doesn't fit in the row or which fruit doesn't fit or whatever question we get. In the past I saw a website with a very accessible capthca, but unfortunately this website is gone. On the accessible google group you can reach by using accessible@googlegroups.com I remember I had a discusssion about accessible capthca's some years ago. Perhaps you can find more info about this on the websites of the rnib or American organisations for the blind and perhaps you can ask there how to code them too? Perhaps they also can help you to solve your issues with coding and how to code? Learning is interesting if you know how to learn yourself. But if you have the feeling you are entangled in the web of info or that you can find head nor tail to the animal you're looking at, it is handy to have someone who tells you how to start and how to do it. I'm not sure this will be of any help, but I really hope it does. Best, WW


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on April 03, 2018, 10:15:39 AM
Guys, I can't help with coding this thing. But perhaps you also should be aware of the following thing: if you only give a visual challenge as captcha to solve, you will exclude the visually impaired users of your game. They won't be able to send in a petition if only visual challenges are available. Screenreaders won't tell us which animal doesn't fit in the row or which fruit doesn't fit or whatever question we get. In the past I saw a website with a very accessible capthca, but unfortunately this website is gone. On the accessible google group you can reach by using accessible@googlegroups.com I remember I had a discusssion about accessible capthca's some years ago. Perhaps you can find more info about this on the websites of the rnib or American organisations for the blind and perhaps you can ask there how to code them too? Perhaps they also can help you to solve your issues with coding and how to code? Learning is interesting if you know how to learn yourself. But if you have the feeling you are entangled in the web of info or that you can find head nor tail to the animal you're looking at, it is handy to have someone who tells you how to start and how to do it. I'm not sure this will be of any help, but I really hope it does. Best, WW

Thank you for reminding us of the needs and challenges of the sight-impaired.  One reason I never used CAPTCHA is exactly this...I deliberately set as much of my site up as I could to be friendly to the visually-challenged...I once had many such players.

The Signets, of course, are not bery friendly, alas, to the vision-challenged...but I also do not want to take from the game things just because of this...because there are players whp are not sigh/vision-challenged.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Nightborn on April 03, 2018, 01:35:30 PM
You should really check before you make any statement. Source: https://support.google.com/recaptcha/answer/6175971?hl=en

"ReCAPTCHA works with major screen readers such as ChromeVox, JAWS, NVDA and VoiceOver. ReCAPTCHA will alert screen readers of status changes, such as when the reCAPTCHA verification challenge is complete. The status can also be found by looking for the heading titled recaptcha status in the recaptcha widget section of the page."


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on April 03, 2018, 06:10:22 PM
You should really check before you make any statement. Source: https://support.google.com/recaptcha/answer/6175971?hl=en

"ReCAPTCHA works with major screen readers such as ChromeVox, JAWS, NVDA and VoiceOver. ReCAPTCHA will alert screen readers of status changes, such as when the reCAPTCHA verification challenge is complete. The status can also be found by looking for the heading titled recaptcha status in the recaptcha widget section of the page."

Good to know.  But if you are using a screen reader...how does one determine which frames contain pictures of boats?  For example?


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Wolfsbanewillow on April 04, 2018, 01:18:24 AM
Nightborn and others, it is even more difficult. A screenreader can't see images, and if it can see images (with no alt-tags) it only shows the word "photo" or "image", nothing more. If someone e.g. posts a photo of a text on facebook (for naming something) I am lucky if I see the word "photo" but I don't see the text. If a captcha asks to click on the vehicle that doesn't fit in the row and you see a boat, a bike, a car and a lorry, (you have to click on the boat in this case) I'll only see photo photo photo photo (if I'm lucky). But an accessible captcha could be: "what's the sum of 5 3 2 and 5?" you have to enter 15; or "which fruit doesn't fit in the row: applee, cherry, peach and abricot" =apple because the seed isn't a stone; or "which animal doesn't fit in the row: "cat, dog, horse and chicken" =chicken: it's not a mammal or has 2 legs. ... audio-challenges are also available, but in that case they have to be handy to use. If I need 10 minutes to solve the issue, and the server logs me out after 10 minutes, my petition won't be sent in easily. Hope this clarifies? Best, WW


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on April 04, 2018, 03:45:07 AM
Nightborn and others, it is even more difficult. A screenreader can't see images, and if it can see images (with no alt-tags) it only shows the word "photo" or "image", nothing more. If someone e.g. posts a photo of a text on facebook (for naming something) I am lucky if I see the word "photo" but I don't see the text. If a captcha asks to click on the vehicle that doesn't fit in the row and you see a boat, a bike, a car and a lorry, (you have to click on the boat in this case) I'll only see photo photo photo photo (if I'm lucky). But an accessible captcha could be: "what's the sum of 5 3 2 and 5?" you have to enter 15; or "which fruit doesn't fit in the row: applee, cherry, peach and abricot" =apple because the seed isn't a stone; or "which animal doesn't fit in the row: "cat, dog, horse and chicken" =chicken: it's not a mammal or has 2 legs. ... audio-challenges are also available, but in that case they have to be handy to use. If I need 10 minutes to solve the issue, and the server logs me out after 10 minutes, my petition won't be sent in easily. Hope this clarifies? Best, WW

This is useful info.  Is there any way to make it so that reCAPTCHA is always something that is equally accessible??


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Wolfsbanewillow on April 04, 2018, 06:28:03 AM
I told you about the website that's gone unfortunately, on that site they knew how to do this. But perhaps the rnib or american association for the blind has this info too?


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on April 04, 2018, 07:49:56 AM
I told you about the website that's gone unfortunately, on that site they knew how to do this. But perhaps the rnib or american association for the blind has this info too?

The problem comes in when...how do you make that work WITH LOTGD specifically.  This is why I never used CAPTCHA in the past.
There is another thing I have seen, that requires one to cut and paste a string of characters into a box, and then can send the Petition, and I always thought that was better than CAPTCHA.  Just a personal opinion.

Again, the problem is....it might be available on some websites...can it be compatible with the engine that is LOTGD is another matter.  I have always tried, as best I could...to make my site as screenreader-friendly as I could.  But sometimes it helps if people actually tell us what troubles they are having...and what might actually help...understanding that it may not be possible, within the framework of LOTGD to do the thing that you might want.

I would, for example, have no idea...how to force CAPTCHA....to always do something that works with a screenreader.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Wolfsbanewillow on April 04, 2018, 09:06:30 AM
The problem is, I also don't have this knowledge, nor concerning the captcha's, nor concerning the lotgd context within it should work. Are there blind programmers out there? I'm not one; I'm blind, but not a programmer, I'm afraid. Best, WW


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Megan|SaraBeth on April 04, 2018, 10:02:42 AM
After much time trying to figure out exactly what to do and coming up stumped each time, I went and emailed Dan. He took time to update it for everyone and since he cant access his account to post it he asked me to do so.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on April 04, 2018, 01:29:36 PM
After much time trying to figure out exactly what to do and coming up stumped each time, I went and emailed Dan. He took time to update it for everyone and since he cant access his account to post it he asked me to do so.

Sweet.  Did it test out on a test server?  If not, I have a test server I am running.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Danodemano on April 04, 2018, 06:11:42 PM
So I actually managed to guess my old password after how many years?  :P

Anyway I fully tested it on a new VM I turned up and it appears that Megan has already implemented it on her site.

That being said, as always, I encourage anyone to review code posted by strangers on the Internet.  This one happens to be super-simple and a 2 minute glance will let you know that there isn't anything malicious hidden inside.

Cheers!


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on December 18, 2018, 03:18:16 AM
After much time trying to figure out exactly what to do and coming up stumped each time, I went and emailed Dan. He took time to update it for everyone and since he cant access his account to post it he asked me to do so.

I discovered something weird.

If you are not logged in...you can't petition at all, because the captcha does not work, it says

ERROR for site owner:
Invalid domain for site key

but if you are logged in and try to petition, it does not even ask for a Catcha at all.

UPDATE: registered site, I was using an old key.  However, now it shows a checkbox for I am not a robot...and it spins forever and does not complete....or it completes and does not show a check in the box and so it still does not work.

I hate this.

I went back to the code string cut and paste thing.

Screw Captcha.


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: Nightborn on December 25, 2018, 12:55:52 PM
Never pass away a captcha (that can also do audio only and more).

here is my implementation, just enter your site key in the settings.
(PHP CURL is needed, though)


Title: Re: reCAPTCHA anti-spam for petition.php
Post by: TGTarheel on December 26, 2018, 01:41:52 AM
Never pass away a captcha (that can also do audio only and more).

here is my implementation, just enter your site key in the settings.
(PHP CURL is needed, though)

Thanks.  I think I will just stick with the cut and paste of an alpha string.  Captcha just seems to always screw up.  Maybe I'm incompentent, I do not know.  But I cannot make the damn thing work.

© 2019 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines