CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 23rd, 2004, 04:19 PM
ponch9's Avatar
ponch9 ponch9 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: San Diego, CA
Posts: 34 ponch9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m 11 sec
Reputation Power: 8
Send a message via ICQ to ponch9 Send a message via AIM to ponch9 Send a message via Yahoo to ponch9
Question CSS keeping spiders away?

Hi there:
I wonder if there is a way to keep spiders away from certain sections of my web pages? For example, keep them away from the nav_bar, but index the rest of the html page?

Someone told me it could be done by CSS but I've tried to search for it without any luck.

Any suggestions would be greatly appreciated.

Sincerely,
Ponch

Reply With Quote
  #2  
Old March 23rd, 2004, 05:07 PM
kicken's Avatar
kicken kicken is offline
Wiser? Not exactly.
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: May 2001
Location: Ft Myers, FL
Posts: 4,174 kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 117001 Folding Title: Super Ultimate Folder - Level 1Folding Points: 117001 Folding Title: Super Ultimate Folder - Level 1Folding Points: 117001 Folding Title: Super Ultimate Folder - Level 1Folding Points: 117001 Folding Title: Super Ultimate Folder - Level 1Folding Points: 117001 Folding Title: Super Ultimate Folder - Level 1Folding Points: 117001 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 3 Weeks 38 m 49 sec
Reputation Power: 563
Send a message via ICQ to kicken Send a message via AIM to kicken Send a message via MSN to kicken
Not as far as I know. You can prevent them for indexing a page completely using a robots.txt file in your site, but it sounds like you are just wanting them to ignore certain parts of your pages? To do that, the only thing you could really do is use Javascript to include a *.js file which is nothing but a buch of document.write() commands to write out your page data. This is generally bad though as it will not only stop spiders from viewing those parts of your site, but it will also stop anyone using a browser that does not support Javascript, or anyone which has it disabled.
__________________
Spidermonkey Tutorial
http://wiser.aoeex.com/ - Long term project (offline due to evil crawlers and lack of content)
http://www.aoeex.com/gmap.php - Put yourself on the map (Now Updated!)

Reply With Quote
  #3  
Old March 23rd, 2004, 05:18 PM
jlk's Avatar
jlk jlk is offline
Perl Jedi
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: New Hampshire
Posts: 109 jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 11 h 24 sec
Reputation Power: 15
Lightbulb

The answer you are looking for is as follows:

Create a robots.txt file in your website root directory with the following content:

User-Agent: *
Disallow: /

That should do the trick.

Here is the link where you can read the full thread I pulled this from:

http://groups.google.com/groups?hl=....dk%26rnum%3D11

Regards,

jlk

Reply With Quote
  #4  
Old April 1st, 2004, 06:39 AM
ponch9's Avatar
ponch9 ponch9 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: San Diego, CA
Posts: 34 ponch9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m 11 sec
Reputation Power: 8
Send a message via ICQ to ponch9 Send a message via AIM to ponch9 Send a message via Yahoo to ponch9
Thanks guys!
JLK, it wasn't really what I was asking for. That will stop spiders to index the site all along. However, I just wanted certain sections on a page to not be indexed. Especially text like NAV_Buttons and Phone Numbers and Street Addresses, among others. Someone said one could do it with .css to keep the spiders away. But I haven't figured it out.

Any suggestions out there?

Peace,
Ponch

Reply With Quote
  #5  
Old April 1st, 2004, 07:02 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
Dev Shed God 10th Plane (9500 - 9999 posts)
 
Join Date: Jul 2003
Location: I used to live at home, now I stay at the house
Posts: 9,909 ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 3 Months 2 Weeks 5 Days 21 h 19 m 32 sec
Reputation Power: 853
Facebook
All you gotta do is list the pages of your site that you don't want the spiders to see in the robots.txt file, and they'll look at everything but those pages...

Here's a good tutorial... http://www.searchengineworld.com/ro...ts_tutorial.htm
__________________
Support requests via PM will be ignored!
Sites: Route of Queue | Sinthetic - Alternative UK Hiphop
Read These: The General Rules Thread | The General FAQ Thread | NEW USERS - How to post a question

Sign up with Matched.co.uk and earn up to £15 per website every month!


Reply With Quote
  #6  
Old April 1st, 2004, 07:48 AM
ponch9's Avatar
ponch9 ponch9 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: San Diego, CA
Posts: 34 ponch9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 29 m 11 sec
Reputation Power: 8
Send a message via ICQ to ponch9 Send a message via AIM to ponch9 Send a message via Yahoo to ponch9
I don't know if I'm not explaining this correctly?!?

I would like the spiders to crawl the entire site. Each and every page should be indexed. However, I would like the spiders to not be able to read certain sections of my pages. I'm not saying certain sections of the WEBSITE!

For example, I want the spider to read the index.html page, but not the whole entire page. There are a few sections that would just take up nonsense and I only want the spider to capture valuable information that will make my ranking higher in the searches.

I know how to use the robots.txt and have robots not being able to reach certain folders and sections within a whole web site, but I'm talking about keeping info away on a single page.

Any help would be good. It's driving me nuts!

Peace,
Ponch

Reply With Quote
  #7  
Old April 1st, 2004, 08:42 AM
prostistudent prostistudent is offline
c0mpl33t n00b
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 13 prostistudent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by ponch9
I don't know if I'm not explaining this correctly?!?

You're explaining it fine, the other two just aren't reading your posts properly. Or maybe they're just daft.

Take kicken's advice and either do the 'bad' JS thing or leave it alone.

OR take a different approach and realise that it can't be done... SO put all of your sensitive and/or garbage information on a different page (or set of different pages) and use the robots.txt file. If it's that big of a deal, use frames and tell the robots not to index the frame pages.

So there is a way to emulate it, it just depends on how much design you're willing to sacrifice to get what you want. What's more important, the layout of your site or the sensitivity of the info?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS keeping spiders away?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT