【发布时间】:2026-02-15 03:25:04
【问题描述】:
我看到了; how to block curl or file_get_contents,本站页面。该代码用于.htaccess 用于阻止php 的file_get_contents。
RewriteEngine On
RewriteCond% {HTTP_USER_AGENT} ^ $ [OR]
RewriteCond% {HTTP_ACCEPT} ^ $
RewriteRule ^ - [L, F]
我的问题是阻止谷歌机器人的可能性是什么?
【问题讨论】:
-
这真的不会保护您网站上的任何内容