Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Hiding links from bots using javascript question

  1. #11
    Join Date
    Oct 2012
    Posts
    150
    Thanks
    18
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by jscheuer1 View Post

    Oh, and you can make it even more obscure by making the scripts external.
    Now that you mentioned it, I may. Right now I have it in the page. How important (or not) that
    Code:
    <script type="text/javascript">
    Zfunction.e.t();
    </script>
    goes after the html tags? Can I throw everything into the external file and just keep the html tags on the page?

  2. #12
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,957
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    That must be after the last link on the page that needs this transformation. Easiest way to be sure is to have it just before the closing </body> tag.

    You can put it all (including the Zfunction.e.t(); call which would now go at the very end) in an external file. Using a text only editor like NotePad, save it as - say, zfunction.js:

    Code:
    function Zfunction(){var z=Zfunction,r,q=(r=arguments[0]).hash[z.q.f](z.q.rr,'');q&&z.q[q]&&z.z[q]&&(function(){r[z.e.p]=[z.z[q],z.q[q],'.',z.e.a].join('');})();}Zfunction.q={who:'doc',where:'page',rr:/#/,f:'replace'};Zfunction.e={a:'html',p:'href',g:document,t:function(){var l=Zfunction.e.g[Zfunction.e.w],ll=l.length;while(--ll>-1)Zfunction(l[ll]);},w:'links'};Zfunction.z={where:'some',who:'another'};Zfunction.e.t();
    Then on the page(s) that use it put this external script tag right before the closing </body> tag:

    HTML Code:
    <script src="zfunction.js" type="text/javascript"></script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Are Dynamic Ajax links followed by bots?
    By easinewe in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 03-22-2010, 04:42 AM
  2. hiding the links on Ajaxtabscontent
    By orhun in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 12-01-2009, 10:34 AM
  3. bots (easy question)
    By james438 in forum PHP
    Replies: 3
    Last Post: 10-22-2008, 08:56 AM
  4. help regarding hiding links
    By rockstar2007 in forum Looking for such a script or service
    Replies: 5
    Last Post: 01-14-2007, 07:38 AM
  5. Hiding HV Menu using Javascript
    By tellic in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 11-21-2005, 08:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •