Human verification captcha

Started on the old forum in January 2019 · view the original in the archive · old links redirect here

7 replies · 149 views · started 7 years ago · 1 min read

2 participants
dave Newbie · 6 posts #1

Hello, I want to add captcha before showing content of the page. If clicked successfully on the button then content of the page can be seen. I am using php made script. Can anyone please help to setup things?

For example see the screenshot: http://prntscr.com/m7iza6

After clicking on human verification button, all the content of the page can be seen.

In this scenario, url of the page is not being changed. Like I open domain.com/view then captcha will show on domain.com/view and after clicking on verification button content shows on the same url domain.com/view

something else Fellow · 2,296 posts #2

This code breaks that captcha you are requesting:

 document.getElementsByTagName('button')[0].click(); 

There are better captcha scripts posted in the forum.

dave Newbie · 6 posts #3

while searching captcha, lots of result came. Can you please provide me link where I can check better captcha and its setup?

something else Fellow · 2,296 posts #4

Sorry I don't use captcha's so I have no idea which one is good in the forum. Probably best to go for one with an image.

dave Newbie · 6 posts #5

Hello, Actually I don't want a captcha with image. I want just a button for "Human verification" see this screenshot http://prntscr.com/m7iza6 When anyone clicks on this button he will see the content. No content will be shown before clicking. After clicking on :human verification" content should be shown. I want a php code for this type of captcha. I will use this code on my website. Please give me the code. Thanks

something else Fellow · 2,296 posts #6
<?php

    if(!$_POST['captcha'])
    {
        echo '<form method="POST">'
                .'<button name="captcha" value="1">Pointless Button</button>'
            .'</form>';
    }
    else
    {
        echo 'Main Content';
    }

?>
dave Newbie · 6 posts #7

Sorry bro. I didn't work. It made a button but still all contents are shown. I want when people will click on the button after that they will see the content. All contents should be hidden beside button. Please help bro.

something else Fellow · 2,296 posts #8

There was a slight error in the original php code but it would not effect it being shown next to it (I will edit it and fix it) However It sounds like you don't have php running (for it to display the main content next to the button) so I will give you it in javascript:

<button id="captcha" onclick="document.getElementById('main').style.display='inline';this.style.display='none';">Pointless Button</button>

<div style="display: none;" id="main">
    Main Content here
</div>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close