Add a robots.txt file. Since WebMods now deliver (albeit basic) pages to visitors

that have not logged into any ZNC account, we certainly want to protect peoples'
ZNC's from Google's crawlers.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1843 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
cflakes
2010-03-23 23:26:38 +00:00
parent 5b723fe7a4
commit cf3fbdffff
2 changed files with 4 additions and 0 deletions

View File

@@ -535,6 +535,8 @@ CWebSock::EPageReqResult CWebSock::OnPageRequestInternal(const CString& sURI, CS
return PrintTemplate("index", sPageRet);
} else if (sURI == "/favicon.ico") {
return PrintStaticFile("/pub/favicon.ico", sPageRet);
} else if (sURI == "/robots.txt") {
return PrintStaticFile("/pub/robots.txt", sPageRet);
} else if (sURI == "/logout") {
m_spSession->SetLoggedIn(false);
SetLoggedIn(false);