瀏覽代碼

Merge pull request #95 from firassziedan/master

Add noIndex to the HTML Opcache status page in case the web crawlers detect the page
Andrew Collington 2 年之前
父節點
當前提交
679c9b0671
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      index.php

+ 2 - 1
index.php

@@ -508,6 +508,7 @@ $opcache = (new Service($options))->handle();
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <title>OPcache statistics on <?= $opcache->getData('version', 'host'); ?></title>
+    <meta name='robots' content='noindex, nofollow' />
     <script src="//unpkg.com/react/umd/react.production.min.js"></script>
     <script src="//unpkg.com/react-dom/umd/react-dom.production.min.js"></script>
     <script src="//unpkg.com/axios/dist/axios.min.js"></script>
@@ -1768,4 +1769,4 @@ function debounce(func, wait, immediate) {
     </script>
 
 </body>
-</html>
+</html>