Remove capcha 'Daddy's Link Protector"

All support enquiries for other DaddyScripts' scripts go in here...

Remove capcha 'Daddy's Link Protector"

Postby thi » Tue Mar 03, 2015 6:58 pm

Please help me code remove capcha source Daddy's Link Protector and open new windown when click hide link
thanks!
thi
Newbie Member
 
Posts: 4
Joined: Tue Mar 03, 2015 6:51 pm

Re: Remove capcha 'Daddy's Link Protector"

Postby SamEA » Sat Mar 07, 2015 10:44 pm

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"
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Remove capcha 'Daddy's Link Protector"

Postby thi » Sun Mar 08, 2015 3:34 pm

ok,thanks support very much!
thi
Newbie Member
 
Posts: 4
Joined: Tue Mar 03, 2015 6:51 pm

Re: Remove capcha 'Daddy's Link Protector"

Postby SamEA » Fri Mar 13, 2015 2:51 pm

No problem, glad it helped. :)
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Remove capcha 'Daddy's Link Protector"

Postby sonLP » Sat Mar 28, 2015 3:43 am

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
User avatar
sonLP
Premium
 
Posts: 25
Joined: Sat Oct 04, 2014 3:13 am
Location: Usa

Re: Remove capcha 'Daddy's Link Protector"

Postby SamEA » Sat Mar 28, 2015 11:35 am

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'] )) {
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm

Re: Remove capcha 'Daddy's Link Protector"

Postby sonLP » Sat Mar 28, 2015 6:00 pm

Many thanks for your reply SamEA :)
User avatar
sonLP
Premium
 
Posts: 25
Joined: Sat Oct 04, 2014 3:13 am
Location: Usa

Re: Remove capcha 'Daddy's Link Protector"

Postby SamEA » Tue Mar 31, 2015 2:32 am

You're welcome sonLP :).
SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm


Return to Other DS Scripts!

Who is online

Users browsing this forum: No registered users and 7 guests

cron