1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Automated reciprocal link checker

Discussion in 'Link Development' started by jarvi, Mar 16, 2004.

  1. ferret77

    ferret77 Heretic

    Messages:
    5,276
    Likes Received:
    230
    Best Answers:
    0
    Trophy Points:
    0
    #61
    my script uses the snoopy class which just contains a bunch of functions for "scraping" webpages

    the file_get_contents function didn't work for me on some urls
    SEMrush
    I don't really know why

    my script stores all the info in a mysql db also
     
    ferret77, Jan 15, 2005 IP
    SEMrush
  2. dfsweb

    dfsweb Active Member

    Messages:
    1,587
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    88
    #62
    Hi,
    I gave it a quick shot (attached file). It's working for me, although I haven't edited it to get fancy error messages etc. Plus, I am sure you can code this with only half the code, instead of the duplicate code but I just can't be asked at 1:16am in the morning!! It works fine though and sends an email to the user as well as the webmaster. It doesn't automatically add the URL to sites.txt though (although this is not too tough to add) as I prefer to check my links before I add them to my site or the "sites.txt" file. This script is working on my site too, here:
    Website submission page


    Change the following things to make this work:

    Replace "www.newzealandphotography.co.nz" by your URL.

    Replace "http://links-directory.newzealandphotography.co.nz/submit-your-website.php" by your links page's full URL

    Change to your email address

    Customise the emails for your own use, change my signature to yours etc.

    You will see that the email that is sent to the webmaster automatically contains the text for the "sites.txt" file, you can cut and paste this text into the file

    It also contains the HTML code for creating the link, you can copy and paste this into your web page. Hope this helps! (I am going to bed now)

    Oh, and the most important step of all:
    Create a link from your home page to my website :D Just kidding!!
     

    Attached Files:

    dfsweb, Feb 5, 2005 IP
  3. carowan

    carowan Peon

    Messages:
    473
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #63
    This is awesome! I just manually checked my links page last week for the first time and over 50% of my outbound links on a PR5 page weren't reciprocated any longer. Moving forward I will use a tool to check weekly.
     
    carowan, Feb 8, 2005 IP
  4. dchoe

    dchoe Active Member

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #64
    I kinda made my own link checker and have it so it'll automatically check once a week for reciprocation and will remove unreciprocating links
     
    dchoe, Feb 8, 2005 IP
  5. sabreakway

    sabreakway Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #65
    Possible anyone have a similar ASP script? Not familiar with PHP.

    Would be appreciated!!
     
    sabreakway, Feb 11, 2005 IP
  6. dead-links

    dead-links Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #66
    As this thread is about reciprocal link checker, I would like to point one that also checks the page rank, tells the number of links, shows a web thumbail, and also shows you the anchor text!

    http://www.recip-links.com
     
    dead-links, Mar 14, 2005 IP
  7. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #67
    Ive seen shawn posted his code, and alot of ppl had errors and a few mods where made.

    Is someone willing to rebuild all the code into 1 nice script ?
     
    TheWebJunkie, Mar 29, 2005 IP
  8. alias420

    alias420 Guest

    Messages:
    139
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #68
    Does anyone know about a program that automatically crawls a site looking for links back to a certain site? I'm not looking to check reciprocation, I want to make sure the one way links I pay for are always linking and can't be bothered to code my own right now. Anyone know something that would help?
     
    alias420, Mar 29, 2005 IP
  9. mrdjkcool

    mrdjkcool Guest

    Messages:
    105
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #69
    If you want a software program try www.cyberspacehq.com and get ADDWEB. Its quite helpful for this.
     
    mrdjkcool, Mar 30, 2005 IP
  10. sharpweb

    sharpweb Guest

    Messages:
    246
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #70
    Well, none of the solutions really worked for me so I went ahead and made my own. I got a little carried away and have basically set it up so that my clients can use it as well. I've also decided to set it up so anyone can use it. So yup, i'm offering it for FREE to anyone that wants to check it out. Even if you're just curious have a look and let me know what you think.

    Sharp Link Manager is FREE software that makes keeping your links page upto date easy. Unlike the bigger link directory solutions, Sharp Link Manager is targeted towards small websites with simple needs.Here is what it features:
    # Writes a links page based on the links you create
    # Allows you to search for sites that are willing to link to yours
    # Allows you to create three different types of links

    * Link to another site only
    * Link Exchange
    * Link to your site only

    # Lets you check to make sure a site links back to yours
    # Lets you search their site to find a link to yours
    # Lets you send custom emails to their website to inquire about your link


    http://www.sharpwebservice.com/link_manager/index.php

    Thanks,
    Chris
     
    sharpweb, Jul 5, 2005 IP
  11. swoop

    swoop Active Member

    Messages:
    469
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    90
    #71
    Thank you Chris, and also to everyone else who created these tools!
     
    swoop, Jul 8, 2005 IP
  12. SixDeep

    SixDeep Peon

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #72
    Hi everyone, I know this is an old thread, but I wanted to share this script and how I have modified it for mysql instead of a flat file. I set this up so it works like this;

    On some php encoded page, you have a link to view your link partners record. You need to have an existing mysql table. To make the link, do something like this
    
    require "../dbconnect.php";//db connection script or your standard db connection commands
    $result = mysql_query("SELECT * FROM table");
    $row = mysql_fetch_array($result);
    echo "<a href="siteview.php?link='.$row['table id'].'">View link</a>";
    PHP:
    The page "siteview.php" will need to have 2 things going on right off the bat. 1 is to establish a connection to your db in this manner

    require "../dbconnect.php";//db connection script or your standard db connection commands
    $result = mysql_query("SELECT * FROM table WHERE id = '$link'");
    $row = mysql_fetch_array($result);
    PHP:
    Ok, the 2nd thing youre going to want to do is set up a hidden field somewhere on the page. Some people say its not necessary, but I just do it so if I need to troubleshoot, I can just echo it somewhere on my page and I can verify that the correct record id is being displayed thus telling me that the variable passed correctly. So throw this somewhere on your page;

    <input type=hidden name="con_id" value="<?php echo $link; ?>">
    PHP:
    Now within your table, have a field dedicated to storing the specific URL where the linking partners page and where your link can be found. For the sake of argument, we'll call this field linkback. Now onto the actual script;

    
    $siteurl = $row['linkback']; // this is the webpage the link should be found on
    $recip = "http://www.whatever.com"; // Your URL
    if (backlinkCheck($siteurl, $recip)) {
     echo "Backlink is ACTIVE";
    } else {
     echo "Backlink is INACTIVE";
    }
    
    function backlinkCheck($siteurl, $recip) {
    $arrText = file($siteurl);
    for ($i=0; $i<count($arrText); $i++) {
     $text = $text . $arrText[$i];
     }
    if (eregi($recip, $text)) {
     return true; // set true if there is a backlink
    } else {
     return false; // set false if backlink is missing
     }
    }
    PHP:
    Have fun!
     
    SixDeep, Sep 1, 2005 IP
  13. WilliamC

    WilliamC Well-Known Member

    Messages:
    252
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #73
    Thanks for posting the script, not bad at all, however one flaw is that it seems nowadays, a Lot of webmasters are getting downright dirty and using hidden links. This will not tell you when this is the case. The code also needs to make sure that your recp is even a link and not just text or hidden text on the page. I think it is sad that we even have to consider such things, but thats the web today.
     
    WilliamC, Sep 1, 2005 IP
  14. SixDeep

    SixDeep Peon

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #74
    Very true and agreed. It used to be so much simpler. Then we all fell into our love/hate relationships with google and their constantly evolving algorithms and SEO requirements. Webmasters will do just about anything now to maintain their advantage over the competition and their SERP's and it puts their linking partners on the backburner.

    Yea I thought about that in advance and made it so I have a sign up form on my site for link exchange and they have to put the exact link I supply to them and they have to input the exact page URL where my link is located. I have a whole link checking system I just completed that is pretty stingent about this. If the script detects something out of character, it emails me and them an alert if the linkback is bad or missing.


    Once I get some more things on it laid out, I will probably open up a demo version for people to check out. Don't know if I'm gonna charge for it... maybe I should just charge them by forcing them to do a 1-way link back to me in exchange for the system LOL :D
     
    SixDeep, Sep 2, 2005 IP
  15. tandac

    tandac Active Member

    Messages:
    337
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #75
    Here's the code I use. It checks for links and makes sure that the link is not within a comment tag:

    $URL="http://".$url['host']."/";
    $CHECK="<a href=\"http://www.bbconnector.com\"";

    $html = implode('', file($URL));
    $pos = strpos($html, $CHECK);
    $badLink=TRUE;
    if ($pos > 0) {
    $badLink=FALSE;
    $comment=strpos($html,"<!--");
    while (($comment > 0) && ($comment < $pos) && ($badLink === FALSE)) {
    $cend=strpos($html,"-->", $comment);
    if (($cend > $pos) || ($cend === false)) {
    $badLink=TRUE;
    }
    $comment=strpos($html,"<!--",$cend);
    };
    }
     
    tandac, Sep 2, 2005 IP
  16. loyalmart

    loyalmart Guest

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #76
    I would like to thank all. i have got a lot today from this forum..
    thanks.
    i was using ARLIEs for company sites but don't have something for myself.... thanks thanks a million.. i will try and keep on posting the results for newbees..
     
    loyalmart, May 17, 2006 IP
  17. WilliamC

    WilliamC Well-Known Member

    Messages:
    252
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #77
    Nice bit of fast code, however I would suggest using

    $CHECK="href=\"http://www.bbconnector.com\"";

    rather than the <a href version as some people make links like <a name= href= or maybe <a style= href= which would break your system.
     
    WilliamC, May 17, 2006 IP
  18. MrBounce

    MrBounce Active Member

    Messages:
    215
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #78
    found this thread at exactly the right time. thanks alot
     
    MrBounce, May 17, 2006 IP
  19. seoBear

    seoBear Well-Known Member

    Messages:
    238
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #79
    what if it is written
    <input type="hidden" "href="http://www.bbconnector.com"/>
    on the page?

    then your approach will be useless :(
     
    seoBear, May 24, 2006 IP
  20. natureday

    natureday Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #80
    I was looking for some software, and not a program, but I think I am going to try this. THanks you guys:)
     
    natureday, Jun 2, 2006 IP