How can I fix this unnecessary Google problem?

Garfield™

Active member
There are currently 10,000 links blocked by Robots.txt, and this number will continue to grow. This is actually why I'm bringing this up, even though I know there's no solution. That's why it's increasing.

The esteemed global giant Google doesn't know that the /misc/style query of a popular software like XenForo is a theme change or inter-theme transition link. We block these links with robots.txt to prevent them from being indexed and our crawl budget from being wasted. Because, again, the esteemed global giant Google, if we didn't block them, might index these URLs instead of the content itself.

Is there a way to remove this query from the "not indexed" or "blocked" section? If I remove this ban from robots.txt, will it seriously harm my crawl budget? Thank you.


You blocked him and told him not to index him, and then you said you were upset because he did that. Even if I didn't block him, he'll still get indexed this time. Because he doesn't know what to index and what not to index. :)
 

Attachments

  • Screenshot_1.webp
    Screenshot_1.webp
    67.9 KB · Views: 19
  • Screenshot_2.webp
    Screenshot_2.webp
    16.4 KB · Views: 19
The fix (for future URLs) is rather simple:
Do not use a link, it's not required anyway.

 
The fix (for future URLs) is rather simple:
Do not use a link, it's not required anyway.


I guess in 2.4 this is no longer a link but a js process?
 
I did this on 2.3. Not a solution but get rid of the links.

 
I did this on 2.3. Not a solution but get rid of the links.


There are 10k connections in total, can I remove them all in bulk?
 
We use @Kirby ’s excellent add-on to serve the default light theme to guests. Since guests cannot retain style preferences, the variation switcher has no real purpose for them. Because of this, we wrapped the variation button with a guest check:

Code:
<xf:if is="$xf.visitor.user_id">
    <!-- Style variation switcher -->
</xf:if>

This removes the switcher entirely from the DOM and Google no longer discovers any new misc/style-variation URLs. That no new URLs will be generated anymore. The remaining ones will gradually drop out, which may take several weeks or even months depending on Google’s recrawl cycle.

Our branding is built around the light theme, so we only allow logged-in users to switch to the dark variation. Given that the transition to 2.4 is expected to be somewhat challenging in terms of timing and technical implications, this approach serves as a reasonable temporary solution for us. At the very least, it prevents additional variation URLs from being generated before we complete the upgrade.
 
Since guests cannot retain style preferences, the variation switcher has no real purpose for them.
Guests can an will retain their variation choice as long as they don't delete / loose their cookies.

This removes the switcher entirely from the DOM and Google no longer discovers any new misc/style-variation URLs.
I've posted a little template modification to remove the links from the variation chooser menu without completely removing the menu for guests.
IMHO this is a better approach.

 
Thanks, I appreciate your perspective. Your suggestion is actually quite sensible and I might give it a try later on. Since our brand and color identity are built around the light theme, we simply keep dark mode as a members-only feature and present it as one of the small perks of being logged in. : ) Guests don’t really need extra variations on their first visit, so hiding the switcher keeps things cleaner for us.
 
Back
Top Bottom