mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user