Page 1 of 1

Remove capcha 'Daddy's Link Protector"

PostPosted: Tue Mar 03, 2015 6:58 pm
by thi
Please help me code remove capcha source Daddy's Link Protector and open new windown when click hide link
thanks!

Re: Remove capcha 'Daddy's Link Protector"

PostPosted: Sat Mar 07, 2015 10:44 pm
by SamEA
Hi,

By removing the captcha, search engines will be able to crawl through the 'protected' hidden links. However, if you don't mind this happening, below are the steps to remove the captcha followed by the ability to open the links in a new window:

To remove the captcha:

In index.php, remove the following code:
Code: Select all
if( isset($_POST['submit1']) && $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) || isset($_SESSION['bypass']) && $_SESSION['bypass']) {
$_SESSION['bypass'] = TRUE;


and remove:
Code: Select all
unset($_SESSION['security_code']);
} else {
                if (isset($_POST['submit1'])) {
                    // Insert your code for showing an error message here
                    echo "<div class=\"error\"><img src=\"./img/error.png\">Sorry, you have provided an invalid security code</div>";
                }
?>
<form method="POST" action="<?php
                echo $_SERVER['php_SELF'];
?>">
      <p align="center"><font face="Arial">Captcha Check:</font></p>
      <p align="left"><font face="Arial">*If the uploader has not chosen to
      password-protected their links, then we include a captcha check to avoid
      the links from being indexed by spiders.</font></p>
      <p align="center">
      <img src="CaptchaSecurityImages.php?width=100&height=40&characters=5" /><br />
      <label for="security_code">Security Code: </label><input id="security_code" name="security_code" type="text" /><br />
      <input type="submit" name="submit1" value="Submit" />
</p>
</form>
<?
            }


To open links in a new window:

In index.php, find:

Code: Select all
<a href="<?php
                    echo $links[$i];
?>"


Add after:

Code: Select all
target="_blank"

Re: Remove capcha 'Daddy's Link Protector"

PostPosted: Sun Mar 08, 2015 3:34 pm
by thi
ok,thanks support very much!

Re: Remove capcha 'Daddy's Link Protector"

PostPosted: Fri Mar 13, 2015 2:51 pm
by SamEA
No problem, glad it helped. :)

Re: Remove capcha 'Daddy's Link Protector"

PostPosted: Sat Mar 28, 2015 3:43 am
by sonLP
SamEA wrote:No problem, glad it helped. :)

I noticed that even if the script request captcha,crawlers still will be able to index "protected" links,because after one visit,script dont ask again por captcha,you can check this by visiting two "protected" links,after first visit you can see all links without filling captcha.

The only fix that i found is no.index no folow

Samea,kindly asking if you are thinking to update this script,script cost me more money than a premium script because all modifications made :(
But still i like a lot

Re: Remove capcha 'Daddy's Link Protector"

PostPosted: Sat Mar 28, 2015 11:35 am
by SamEA
Hi sonLP,

This is designed by default as crawlers should not be attempting to crack a captcha. If it is, even rules such as no.index no follow will be ignored.

If you want the captcha to be displayed each and everytime, you can simply change the following code in ./index.php from:

Code: Select all
if( isset($_POST['submit1']) && $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) || isset($_SESSION['bypass']) && $_SESSION['bypass']) {
$_SESSION['bypass'] = TRUE;


to

Code: Select all
if( isset($_POST['submit1']) && $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] )) {

Re: Remove capcha 'Daddy's Link Protector"

PostPosted: Sat Mar 28, 2015 6:00 pm
by sonLP
Many thanks for your reply SamEA :)

Re: Remove capcha 'Daddy's Link Protector"

PostPosted: Tue Mar 31, 2015 2:32 am
by SamEA
You're welcome sonLP :).