SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Anyway to prevent a .js file from being seen by SE bots?

    Is there way to somehow hide the contents of a .js file from SE bots?

    I was considering a redirect or something in the script that would make them leave the script.

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    robots.txt - http://www.robotstxt.org/wc/exclusion.html#robotstxt

    You can exclude an entire directory or just a file.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    EU/UK+DK
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wouldn't a robots.txt work? Assuming we're talking about well-behaved bots...

    Edit: Damn, beaten.
    The plus sign (+) is valid within an email address; please do not
    write or suggest code that precludes its use, as many use it as a
    "label" to filter incoming mail. </crusade>

  4. #4
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Wacky View Post
    Wouldn't a robots.txt work? Assuming we're talking about well-behaved bots...

    Edit: Damn, beaten.
    Yeah, I considered robots.txt but not all bots check that...

    Any other way to do it?

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,834
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Only spambots are going to search Javascript is separate files to start with, the SE bots will ignore the javascript anyway where ever it is put.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  6. #6
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    Only spambots are going to search Javascript is separate files to start with, the SE bots will ignore the javascript anyway where ever it is put.
    Google indexes javascript files.

    I want to eliminate tracks for a network of sites I have, they have the same external JS file.

    Any suggestions?


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
  •