Getting Nofollow to all the links in a page using javascript

Discussion in 'JavaScript' started by Andy_ameed, Jan 14, 2010.

  1. #1
    Is there a code that we can use to add Nofollow to all the links in a page (html or php?

    Thanks
     
    Andy_ameed, Jan 14, 2010 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    doing this through js will really not have any effect insofar as google is concerned. you need to do it in the page source so php.
     
    dimitar christoff, Jan 15, 2010 IP
  3. Andy_ameed

    Andy_ameed Active Member

    Messages:
    129
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Can you please tell what code is needed to do this.
     
    Andy_ameed, Jan 15, 2010 IP
  4. Andy_ameed

    Andy_ameed Active Member

    Messages:
    129
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    i have been fishing a solution for 3 days now.. no luck, does anyone here have a better luck than me?
     
    Andy_ameed, Jan 16, 2010 IP
  5. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #5
    ask on the php forum. you can sort of do it but you need to use a templating system / buffer output and regex the links before outputting - or you can try some php dom tools, might work. either way, this is the javscript forum, good luck to you.
     
    dimitar christoff, Jan 17, 2010 IP