From fb424a7eefe3a802000d2145ad8d66b51b586be3 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 7 Dec 2017 09:32:23 -0500 Subject: [PATCH] add a robots.txt to the docroot to tell bots to not scrape our ZM install. --- web/CMakeLists.txt | 2 +- web/robots.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 web/robots.txt diff --git a/web/CMakeLists.txt b/web/CMakeLists.txt index e9b156068..50e5f9998 100644 --- a/web/CMakeLists.txt +++ b/web/CMakeLists.txt @@ -10,7 +10,7 @@ configure_file(includes/config.php.in "${CMAKE_CURRENT_BINARY_DIR}/includes/conf # Install the web files install(DIRECTORY api ajax css fonts graphics includes js lang skins tools views DESTINATION "${ZM_WEBDIR}" PATTERN "*.in" EXCLUDE PATTERN "*Make*" EXCLUDE PATTERN "*cmake*" EXCLUDE) -install(FILES index.php DESTINATION "${ZM_WEBDIR}") +install(FILES index.php robots.txt DESTINATION "${ZM_WEBDIR}") install(FILES "${CMAKE_CURRENT_BINARY_DIR}/includes/config.php" DESTINATION "${ZM_WEBDIR}/includes") # Install the api config files (if its not in the source directory) diff --git a/web/robots.txt b/web/robots.txt new file mode 100644 index 000000000..1f53798bb --- /dev/null +++ b/web/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: /