I logged into my webmaster account on Yahoo, looked at all the pages it had indexed for my site and my css file was one of the pages, is this normal?

Dani AI

Generated

Seeing a stylesheet listed in a webmaster dashboard is normal. discovered exactly what many site owners see: webmaster tools report any HTTP resource the crawler fetched, and linked assets like .css files are legit items in that list. is right that these tools can be surprising at first, and is also right in spirit — search tools borrow useful features from each other.

If the goal is to keep a stylesheet out of search indexes, do not block it with robots.txt (that prevents crawlers from fetching the file and can impair how engines render your pages). A better approach for non-HTML resources is the X-Robots-Tag HTTP header, which signals “noindex” for a response. See the MDN reference for details on the header: X-Robots-Tag header. Example server rules:

# Apache (requires mod_headers)
<FilesMatch "\.css$">
  Header set X-Robots-Tag "noindex"
</FilesMatch>

# Nginx
location ~* \.css$ {
  add_header X-Robots-Tag "noindex";
}

Quick checks and tips: confirm the stylesheet is served with the right MIME type (text/css) and test headers with curl -I. If the CSS must remain public for page rendering, keep it accessible; otherwise use the header above or place it behind authenticated access. For background on robots files and when to use them, see: .

Recommended Answers

All 3 Replies

It doesn't seem it, but I didn't even know that Yahoo! had an equivalent of Google Webmaster Tools.

Yahoo is just following the Google.... That's why they follow the leader of all SEs (the big G)...

Darn copycat! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.