robots.txtの追加
This commit is contained in:
@@ -157,6 +157,15 @@ denyaccess:
|
||||
}
|
||||
}
|
||||
|
||||
public function robots(array $params): void {
|
||||
$txt = "User-Agent: *\nDisallow: /login/\nDisallow: /register/";
|
||||
$tmpFile = tempnam(sys_get_temp_dir(), 'tmpl_');
|
||||
file_put_contents($tmpFile, $txt);
|
||||
|
||||
include $tmpFile;
|
||||
unlink($tmpFile);
|
||||
}
|
||||
|
||||
//------------------------------------------
|
||||
// 機能性
|
||||
//------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user