Forum Moderators: phranque

Message Too Old, No Replies

Used style="display:none"

Now bots are all gone

         

twist

4:22 pm on Jun 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



After setting up a spider trap from instructions found here on WW I added the following line to my footer to catch spider not using the robots.txt file.

<a style="display:none" href="http://example.com/trap/email.php" onclick="return false">Email</a>

Now, all search engines have stopped coming and my google/yahoo/msn caches are all dated to about the day I added this line of code. About June 6. Before they were caching my site about every 3 days.

I have removed the line but have zero activity of bots visiting my site.

What to do?

Longhaired Genius

7:37 pm on Jun 17, 2005 (gmt 0)

10+ Year Member



It's beyond belief that Google/Yahoo/msn would all have the same policy regarding this innocuous scrap of markup. I think your problem (if it's not just a coincidence) must lie elsewhere.

kaled

7:48 pm on Jun 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is reasonable that display:none would be treated as hidden text especially if there is no id="idname" attribute. Without such an attribute, it is clear that the item is never going to be displayed using javascript either.

However, I am inclined to agree with the Genius regarding coincidence, etc.

Incidentally, I place a robots exclusion meta tag on pages with hidden parts just to be ultra-safe.

Kaled.

Span

7:49 pm on Jun 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Must be something wrong with the spider trap. Make sure you haven't blocked any important bots in your .htaccess or robots.txt.

monkeythumpa

8:04 pm on Jun 17, 2005 (gmt 0)

10+ Year Member



It sounds like your robots.txt is set up incorrectly and you are banning all robots.

twist

12:17 am on Jun 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I changed it to this last night,

<!-- <a href="http://example.com/trap/email.php">Email</a> -->

Which I was told will also be followed by the bad bots but the good bots will ignore.

Coincidence or not, today my pages indexed on google doubled. It could have been taking away the display:none or it could have just been a coincdence but i'm not going to switch it back to find out. Maybe someone else will test it some day.