robots.txt

This commit is contained in:
themohooks 2024-07-21 04:53:34 +03:00
parent 6442e6121b
commit d69827cbe7
2 changed files with 8 additions and 0 deletions

View file

@ -61,6 +61,13 @@ class MainController
Page::set('FavAuthors'); Page::set('FavAuthors');
} }
public static function robots() {
echo 'User-Agent: *
Disallow: /lk/
Clean-Param: vid&gid&upd /photo/
Host: https://'.$_SERVER['SERVER_NAME'];
header("Content-Type: text/plain");
}
public static function logout() public static function logout()

View file

@ -11,6 +11,7 @@ class Routes
public static function init() public static function init()
{ {
Router::get('/', 'MainController@i'); Router::get('/', 'MainController@i');
Router::get('/robots.txt', 'MainController@robots');
Router::get('/t', 'MainController@t'); Router::get('/t', 'MainController@t');
Router::get('/login', 'LoginController@i'); Router::get('/login', 'LoginController@i');
Router::get('/register', 'RegisterController@i'); Router::get('/register', 'RegisterController@i');