
內容簡介
這個外掛會在未實際存在於伺服器上的情況下,添加一些行至 WordPress 自動建立的虛擬 robots.txt 檔案中,以阻擋一些不應被索引的 WooCommerce 資產和搜尋頁面。
請注意外掛的功能:啟用後,它將向 robots.txt 檔案添加一些行,告知搜尋引擎機器人不要索引這個網站的某些部分。
此外掛會封鎖某些 WooCommerce 頁面(如「add-to-cart」、「orderby」、「filter」、「cart」、「account」、「checkout」等),不讓搜尋引擎爬取和索引。因為這些鏈結無法緩存和/或產生爬行迴圈(並且沒有效益),正常爬取這些鏈結需要大量的 CPU、內存和帶寬。當經營 WooCommerce 網店時,優化 robots.txt 可將更多運算能力分配給真正重要的頁面。
此外掛還會阻止 WordPress 的搜尋頁面被索引。
請只有在您知道自己在做什麼時才啟用此插件。
此外掛有哪些功能?
此外掛將向 WordPress 自動建立的虛擬 robots.txt 檔案添加必要的行,以阻擋不應被索引的 WooCommerce 資產和搜尋頁面。
此外掛的想法基於什麼?
沒有什麼基於的想法。我們需要一個快速的解決方案,以將這些行添加到 robots.txt 檔案中,這是我們編寫的解決方案。
什麼是 robots.txt 檔案?
robots.txt 檔案是位於網域(或子域)根目錄下的純文本文件,它告訴網路爬蟲(例如 Googlebot)它們應該訪問和索引哪些網站的部分。
當搜索引擎爬蟲訪問頁面時,第一件事情就是查看 robots.txt 檔案,它控制著搜索引擎蜘蛛如何看待和與網頁交互。
系統需求
PHP 版本需要在 7.1 或更高的版本。
我們要求使用 7.1 或更高的版本,因為我們認為每個人都應當使用現代的 PHP 版本。在發布此外掛時,WordPress 建議使用 PHP 7.4 或更高版本。
如何將此外掛翻譯成您的語言?
首次發布的版本支援英語和西班牙語。在“languages”文件夾中,我們包含了必要的文件來翻譯此外掛。
如果您喜歡使用您的語言,並且善於翻譯,請使用 WordPress 翻譯功能。
初次翻譯外掛嗎?首先閱讀 譯者手冊,然後選擇您的地區語言(locale)在 翻譯 WordPress 中,最後轉到 此外掛的翻譯頁面進行翻譯。
進一步閱讀
您可以在以下網址中閱讀插件的西班牙語說明:Block WooCommerce Assets via robots.txt en español。
聯繫
欲了解更多信息,請發送電子郵件至 此處與我們聯繫。
外掛標籤
開發者團隊
② 後台搜尋「Block eCommerce Assets via robots.txt」→ 直接安裝(推薦)
原文外掛簡介
This plugin adds lines to the virtual robots.txt file that WordPress creates automagically if the file is not present physically on the server to block some WooCommerce assets and Search pages that should not be indexed.
Please be aware of what this plugin does exactly: If you activate the plugin it will add some lines to the robots.txt file to tell search engine bots to not to crawl and index parts of this website.
This plugin blocks certain pages from WooCommerce (“add-to-cart”, “orderby”, “filter”, cart, account, checkout, …) from being crawled by search engines. Crawling these links normally requires a lot of CPU, memory and bandwidth because they are not cacheable and/or create crawling loops (while they are useless). Optimizing your robots.txt when running a WooCommerce online store allocates more processing power for pages that really matter.
This plugin also blocks the search pages from WordPress from getting indexed.
Please only activate this plugin if you know what you’re doing.
What can I do with this plugin?
This plugin adds the necessary lines to the virtual robots.txt file that WordPress creates automagically to block to block WooCommerce assets that should not be indexed and the Search pages.
What ideas is this plugin based on?
None. We needed a fast solution to add these lines to the robots.txt file and this was the solution we coded.
What is the robots.txt file?
The robots.txt file is a plain text file located at the root folder of a domain (or subdomain) which tells web crawlers (like Googlebot) what parts of the website they should access and index.
The first thing a search engine crawler looks at when it is visiting a page is the robots.txt file and it controls how search engine spiders see and interact with the web pages.
System requirements
PHP version 7.1 or greater.
We require 7.1 or higher because we believe that everybody should be running a modern PHP version. When releasing this plugin WordPress recommends PHP 7.4 or higher.
How to get this plugin in your Language!
The first release is avaliable in English and Spanish. In the “languages” folder we have included the necessary files to translate this plugin.
If you would like the plugin in your language and you’re good at translating, please use the native WordPress Translation functionality.
New to Translating a plugin? First read through the Translator Handbook, then select your locale at Translating WordPress and finally go to the translation page for this plugin to translate it.
Further Reading
You can access the description of the plugin in Spanish at: Block WooCommerce Assets via robots.txt en español.
Contact
For further information please send us an email.
