我在我的index.php以下形式:如何防止下面的GET表單的機器人?
<form action="index.php" method="GET">
<input name="id" type="text">
</form>
我知道我可以改變方法POST,這樣的Googlebot(或其他任何BOT)將不提交此。不過,我需要這是一個GET表單。
- 我已加入noindex和nofollow的當
$_GET["id"]
提交(即在index.php?id=123
) - 的index.php具有指數和跟隨,因爲我想要的網站的其餘部分應遵循和索引。
我正在尋找一種方法來阻止Googlebot進入index.php?id='some random number'
沒有noindex和nofollow技巧不工作? –
我希望「index.php?id = 123」根本不會被加載(除非是人類) –