Welcome to WebmasterWorld Guest from 54.227.83.19

Forum Moderators: open

Message Too Old, No Replies

Hide <include> from spiders

need to hide

     

ak_web

10:51 pm on Feb 18, 2006 (gmt 0)



Hello,

I have <? include("URL")?> on page.
Is there a solution to hide this code from the spiders using JavaScript?

Dijkgraaf

12:45 am on Feb 19, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well that include looks to be server side PHP.
Why not do a User Agent detection there instead and make the include conditional?

Other than that, you could use a series of document.write statemnts to write out the contents you want.
You might want to check out the Cloaking [webmasterworld.com] forum.

kaled

1:18 am on Feb 19, 2006 (gmt 0)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member



What is the nature of the content that you wish to exclude?

Kaled.

ak_web

1:41 am on Feb 19, 2006 (gmt 0)



Thank you for responses.
There is a big peace of code in this <? include?> , including more JS and PHP, but , in general, I need to hide just one link from this code. The problem is that this link looks like <a href="url/<!--{$results}-->"> and when I'm trying to hide it with JS it doesn't work properly. That's why I decided that may be it will be easy to hide all this <? include?>

kaled

11:32 am on Feb 19, 2006 (gmt 0)

WebmasterWorld Senior Member kaled is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Spiders don't run javascript therefor js cannot be used to hide content from them.

Perhaps <a rel="nofollow"> is what you need.

Kaled.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month