1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

investigation for a invisible link

Discussion in 'Black Hat SEO' started by mobaobao, Jan 4, 2011.

  1. mobaobao

    mobaobao Registered Member

    Joined:
    Feb 25, 2009
    Messages:
    63
    Likes Received:
    6
    Hi mate, this is my story:

    While I was studying some websites, I discovered a site seems using some 'blackhat' method to make the link invisible but I could not figure out how they can do this. So, I bring it here to see any people to help me for doing some investigation. The URL is hxxp://www.bradleycentersports.com. In the source code, you can find a div tag with id='fbb' and all the links & anchor text within this div tag get invisible. I've looked its CSS files but didn't find any 'fbb' footprint. I'm really curious about how they can do this. Please note that this site have PR5. Thanks.
     
  2. GreyWolf

    GreyWolf Executive VIP Jr. VIP

    Joined:
    Aug 17, 2009
    Messages:
    1,930
    Likes Received:
    5,389
    Gender:
    Male
    Occupation:
    Artist / Craftsman
    Location:
    sitting at my PC
    I made this reply in another thread recently. They're probably doing something similar to this. I didn't bother to check it. but if you download the styles.css for that page you'll see the parameters they used for that div. If you use any of these examples you can also move the internal styles from the head to an external styles.css page like they do on that website.

    edit -
    I just read your post again and see that you already looked in the css. So the code is probably in the script RennielFernandez pointed out.
     
    Last edited: Jan 4, 2011
  3. RennielFernandez

    RennielFernandez Newbie

    Joined:
    Oct 21, 2010
    Messages:
    1
    Likes Received:
    0
    Location:
    Jersey City, NJ
    There's a script tag that loads script from the twittericonfactory site.

    EDIT: The script tag is right after the div you mention.
     
    Last edited: Jan 4, 2011
  4. Satan Claus

    Satan Claus Regular Member Premium Member

    Joined:
    Aug 25, 2010
    Messages:
    217
    Likes Received:
    193
    The offending code is

    Code:
    <SCRIPT TYPE="text/javascript">var icnid="2562";var icnwd='100';//101207</SCRIPT>
    
    Although I havn't got a clue why yet.

    Edit: above post explains it.
     
    Last edited: Jan 4, 2011
  5. GreyWolf

    GreyWolf Executive VIP Jr. VIP

    Joined:
    Aug 17, 2009
    Messages:
    1,930
    Likes Received:
    5,389
    Gender:
    Male
    Occupation:
    Artist / Craftsman
    Location:
    sitting at my PC
    The first script that you quoted is what makes the twitter basketball bird show up in the sites header. It's the next script after that one that's affecting the div.
    Code:
    <script src="http://twittericonfactory.com/t/"></script>
    a document.getElementById('fbb') function is included in it so I'm sure it has to do with this script.

    I'm just not sure exactly why it's not showing anything though. It looks like the html and that script should make somekind of facebook link show up next to the twitter one. I'm not sure why it has the effect of hiding the div completely instead.
     
  6. mangoman

    mangoman Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 29, 2010
    Messages:
    430
    Likes Received:
    74
    dont post other peoples websites idiot
     
  7. mobaobao

    mobaobao Registered Member

    Joined:
    Feb 25, 2009
    Messages:
    63
    Likes Received:
    6
    I've just extracted the code and test it, but no invisible:

    Code:
    <a id="icnlnk" href="http://twitter.com/bcproshop"></a>
    <script type="text/javascript">var icnid="2562";var icnwd='100';//101207</script>
    <div id='fbb'>
        <a href='http://www.test.org'>test1</a>
        <a href="http://test.net">test2</a>
    </div>
    <script src="http://twittericonfactory.com/t/"></script></td>
    Grey, how can I trace the 'fbb' function?
     
  8. GreyWolf

    GreyWolf Executive VIP Jr. VIP

    Joined:
    Aug 17, 2009
    Messages:
    1,930
    Likes Received:
    5,389
    Gender:
    Male
    Occupation:
    Artist / Craftsman
    Location:
    sitting at my PC
    That's pretty close, but if you just copy that code into an html file on your pc it won't work. If you upload it to your server and load it from online then it does work.

    OK I sorted this out for you a little bit. It's just a cut and paste script to display a twitter icon from the twittericonfactory website for a custom twitter button on a webpage. It's kind of like how people used to get myspace codes from third party websites.

    The hidden links aren't something intentionally done by that website owner. If you go to the twittericonfactory website and select one of their icons for a twitter button on your website, they insert a couple of links into the code they give you.

    Here is the code that's making that div not show up.
    Code:
    <a id="icnlnk" href="http://twitter.com/idname"></a>
    <script type="text/javascript">var icnid="2562";
    var icnwd='';//110101</script><div id='fbb'>
    <a href='website1url'>anchortext1</a>
    <a href='website2url'>anchortext2</a></div>
    <script src="http://twittericonfactory.com/t/"></script>
    This is the code in that script src file.
    Code:
    if(document.getElementById('icnlnk'))
    {r=Math.floor(Math.random()*101);
    u="http://twittericonfactory.com";f=document.getElementById('fbb');
    i=document.getElementById('icnlnk');if(f){var c=new Image();
    c.src=u+'/icon/'+icnid+'/1/';c.setAttribute("border","0");
    c.style.width=icnwd;c.style.height="auto";i.appendChild(c);f.innerHTML='';
    f.id='fbb'+r;i.id='icnlnk'+r;}
    else{i.href=u;i.innerHTML="Icon display code is incomplete. Click to re-install.";
    i.id='icnlnk'+r;}}
    You could modify this to eliminate the twittericonfactory stuff, and to use an icon from your own site fairly easily. Change the icnlink href to whatever you want. create an image with the same icnid on your website and then change the u="URL" in the script to your the same website. I played with it a little bit so I know you can do that, you just have to play with it a bit to get it to work.

    If twittericonfactory is using it then it's probably used by other similar third party sites. Since it's being used on that scale as a spam link method I would imagine google will probably figure that out soon if it hasn't already.

    I can't say if this would be better or if it would be best to just try the hidden div method I gave earlier in the thread.
     
    • Thanks Thanks x 1
    Last edited: Jan 4, 2011
  9. mobaobao

    mobaobao Registered Member

    Joined:
    Feb 25, 2009
    Messages:
    63
    Likes Received:
    6
    Wow, Gery you are genius! Do u think it is worth trying this method, as well as your hidden div method?
     
  10. GreyWolf

    GreyWolf Executive VIP Jr. VIP

    Joined:
    Aug 17, 2009
    Messages:
    1,930
    Likes Received:
    5,389
    Gender:
    Male
    Occupation:
    Artist / Craftsman
    Location:
    sitting at my PC
    Like I said it would be pretty easy modify the code to eliminate everything that isn't totally necessary and to work totally from your own site.

    I think it would be easier to make the hidden div method look more legit since you can have links that will actually display the hidden text. It can be made to seem it's done for the visitors instead of the crawlers.

    But I really have no idea if one way would work better than another for SEO though. You just gotta make your own decision for that. :cool2:

    Hope that helps. ~ Wolf
     
  11. GreyWolf

    GreyWolf Executive VIP Jr. VIP

    Joined:
    Aug 17, 2009
    Messages:
    1,930
    Likes Received:
    5,389
    Gender:
    Male
    Occupation:
    Artist / Craftsman
    Location:
    sitting at my PC
    @mobaobao - mangoman has a point. You're not supposed to 'out' other peoples websites. You should edit your first post to xxx out the guys website url. It isn't needed anymore anyway cause you have the code section you wanted.

    @mangoman - You could have explained that better without calling anyone an idiot. I'm assuming you were just talking about the website in the OP's first post. I hope you didn't jump in here to call me an idiot.

    I'm not really worried about outing the twittericonfactory site though. If they want to work that method that's up to them, but if they decide to do things like that then they need to expect they'll be pointed out. I'm sure they can survive me pointing that out. In case anyone from bhw tries using them it's best that they know to double check the code they get.