作为网站所有者,您可能会提供一些供用户互动的渠道,例如论坛、留言板、社交媒体平台、文件上传工具、托管服务或内部搜索服务。这些服务允许用户创建账号,以便在您的网站上发布内容、上传文件或执行搜索。遗憾的是,垃圾内容发布者通常会利用这些类型的服务来生成数百个垃圾网页,这类网页对网络的价值很小或毫无价值。根据 Google 网站站长指南中规定的原则,Google 可能会因此对受影响的网页采取人工处置措施。下面是一些示例:
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],[],[[["\u003cp\u003eSpam on user-generated content platforms can negatively impact website ranking, expose users to harmful content, and slow down site performance.\u003c/p\u003e\n"],["\u003cp\u003eWebsite owners should implement measures such as CAPTCHAs, email validation, and moderation features to prevent automated spam.\u003c/p\u003e\n"],["\u003cp\u003eRegularly monitor your site for spam using Google Search operators, server logs, and Google Alerts; promptly remove or demote spammy content.\u003c/p\u003e\n"],["\u003cp\u003eSecure user-generated content by using noindex or robots.txt for untrusted pages, and consolidate content into a specific directory.\u003c/p\u003e\n"],["\u003cp\u003eKeep website software updated, utilize anti-spam systems like Akismet, and consider security plugins for enhanced protection.\u003c/p\u003e\n"]]],["Website owners should implement measures to prevent spam abuse in user-interactive areas. Key actions include: blocking automated account creation using CAPTCHAs and email validation, enabling content moderation, and monitoring for and removing spam. Additionally, website owners should use Search Console to monitor for issues, employ tools like `site:` operator, Google Alerts, and analytics for detection, and identify/terminate spam accounts. It's crucial to prevent search engines from indexing untrusted content, consolidate user-generated content paths, and keep software updated.\n"],null,["# Prevent portions of your site from being abused by spam\n\nWednesday, May 26, 2021\n\n\nAs a website owner, you might provide a few channels where your users can interact, such as forums,\nguestbooks, social media platforms, file uploaders, hosting services, or internal search\nservices. These services allow users to create an account to post content, upload a file, or search\non your site. Unfortunately, spammers often take advantage of these types of services to generate\nhundreds of spam pages that add little or no value to the web. Under the principles set out in\n[Google's Webmaster Guidelines](/search/docs/essentials),\nthis may result in Google taking manual actions against the affected pages. Here are some examples:\n\n\nSpammy content like this can be harmful to your site and users in several ways:\n\n- Low-quality content on some parts of a website can impact the whole site's ranking.\n- Spammy content can potentially lead users to unwanted or even harmful content, such as sites with malware or phishing, which may lower the reputation of your site.\n- Unintended traffic from unrelated content on your site can slow down your site and raise hosting costs.\n- Google might remove or demote pages that are overrun with third-party generated spam to protect the quality of our search results.\n\n\nIn this blog post, we will provide some tips to prevent spammers from abusing your site.\n\nBlock automated account creation\n--------------------------------\n\n\nWhen users create an account on your site, consider using Google's\n[CAPTCHAs](https://www.google.com/recaptcha/about/) service or similar\nverification tools (for example: [Securimage](https://www.phpcaptcha.org/)\nor [Jcaptcha](https://jcaptcha.sourceforge.net/)) to only allow human\nsubmissions and prevent automated scripts from generating accounts and content on your site's\npublic platforms.\n\n\nRequiring new users to validate a real email address when they sign up for a new account can also\nprevent many spam bots from automatically creating accounts. Additionally, you can set up filters\nto block email addresses that are suspicious or originating from email services that you don't\ntrust.\n\nTurn on moderation features\n---------------------------\n\n\nConsider enabling comment and profile creation moderation features that require users to have a\ncertain reputation before links can be posted. If possible, change your settings so that you don't\nallow anonymous posting, and make posts from new users require approval before they are publicly\nvisible.\n\nMonitor your site for spammy content and clean up any issues\n------------------------------------------------------------\n\n\nRegister and verify your website ownership in [Search\nConsole](https://support.google.com/webmasters/answer/9128669). To see if there are any issues detected by Google, check the\n[Security Issues\nreport](https://support.google.com/webmasters/answer/9044101) and [Manual\nactions report](https://support.google.com/webmasters/answer/9044175). You can also check the Messages panel to learn more information.\n\n\nIn addition, it is good to occasionally check your site for unexpected or spammy content by using\nthe [`site:`\noperator](https://support.google.com/websearch/answer/2466433) in Google Search, together with commercial or adult keywords that are unrelated to\nyour site's topic. For example, search for \\[`site:your-domain-name viagra`\\] or\n\\[`site:your-domain-name watch online`\\] to detect the irrelevant content on your site,\nespecially for:\n\n- Out-of-context text or off-topic links with the sole purpose of promoting a third-party website/services (for example, \"free movie download/watch online\")\n- Gibberish or text that is automatically generated (not written by a real user)\n- [Internal search results](/search/docs/fundamentals/seo-starter-guide#no-find) where the user query appears off-topic with the purpose of promoting a third-party website/services\n\n\nMonitor your web server log files for sudden traffic spikes, especially for newly created pages.\nFor example, look for any URLs with keywords in URL patterns that are completely irrelevant to\nyour website. To identify potential high traffic problematic URLs, use the\n[Pages\nreport](https://analytics.google.com/analytics/web/#/report/content-overview/) in Google Analytics.\n\n\nBlock obviously inappropriate content from being published to your platform with a list of spammy\nterms (for example: streaming or download, adult, gambling, pharma related terms). Built-in\nfeatures or plugins can delete or mark these content as spam for you.\n\n\nAnother great tool for this is [Google\nAlerts](https://www.google.com/alerts). Set up a \\[`site:your-domain-name spammy-keywords`\\] alert using commercial\nor adult keywords that you wouldn't expect to see on your site. Google Alerts is also a great tool\nfor detecting hacked pages.\n\nIdentify and terminate spam accounts\n------------------------------------\n\n\nMonitor your web server log for user sign-ups and identify typical spam patterns, such as:\n\n- Large number of sign-up form completions within a short time.\n- Number of requests sent from the same IP address range.\n- Unexpected user agents used during sign-up.\n- Nonsense user names or other nonsense submitted values during sign-up. For example, commercial usernames (names like \"Free movie download\") that don't sound like real human names and link to unrelated sites.\n\nPrevent Google Search from showing or following untrusted content\n-----------------------------------------------------------------\n\n\nIf your site allows users to create pages like profile pages, forum threads, or websites, you can\ndeter spam abuse by preventing Google Search from showing or following new or untrusted content.\n\n\nFor example, you can use the [`noindex`\nmeta standard](/search/docs/crawling-indexing/block-indexing) to block access to untrusted pages. Like this: \n\n```text\n\u003chtml\u003e\n \u003chead\u003e\n \u003cmeta name=\"googlebot\" content=\"noindex\"\u003e\n \u003c/head\u003e\n\u003c/html\u003e\n```\n\n\nOr you can use the [robots.txt standard](/search/docs/crawling-indexing/robots/intro) to\ntemporarily block the pages. For example: \n\n```text\nDisallow: /guestbook/\n```\n\n\nYou can also mark user-generated content (UGC) links, such as comments and forum posts, as UGC by\nusing [rel=\"ugc\"](/search/docs/advanced/guidelines/qualify-outbound-links)\nor [rel=\"nofollow\"](/search/docs/advanced/guidelines/qualify-outbound-links).\nThis helps you explain your relationship with the linked page to Google and request that Google not\nfollow that link.\n\nConsolidate your open platform content into a concentrated file path or directory\n---------------------------------------------------------------------------------\n\n\nWith automated scripts or software, spammers can generate a large number of spammy pages on your\nsite in a short time. Some of this content may be hosted in fragmented file paths or directories,\nwhich prevent site owners from effectively detecting and cleaning up spam. Some examples are like: \n\n```\nexample.com/best-online-pharma-buy-red-viagra-online\nexample.com/free-watch-online-2021-full-movie\n```\n\n\nIt is also recommended to consolidate your user-generated content into a concentrated file path or\ndirectory for easier maintenance and spam detection. For example, the following file path would be\nrecommended: \n\n```\nexample.com/user-generated-content-dir-name/example01.html\nexample.com/user-generated-content-dir-name/example02.html\n```\n\nKeep your website software updated and use automated systems to defend your site\n--------------------------------------------------------------------------------\n\n\nTake the time to keep your software up-to-date and pay special attention to important security\nupdates. Spammers may take advantage of security issues in older versions of blogs, bulletin\nboards, and other content management systems.\n\n\nIn addition, some comprehensive anti-spam systems like\n[Akismet](https://akismet.com/) have plugins for many blogs\nand forum systems that are easy to install and do most of the spam fighting work for you.\nAdditionally, there are trusted and well-known security plugins available for some platforms,\nwhich help secure the website, and may be able to catch abuse early.\n\n\nDepending on your site's situation, please check out our documentation for more detailed information:\n\n- [Protect your site from\n user-generated spam](/search/blog/2017/01/protect-your-site-from-user-generated)\n- [Ways to prevent comment\n spam](/search/docs/advanced/guidelines/prevent-comment-spam)\n- [Preventing spam on host\n services](/search/docs/advanced/guidelines/free-web-hosters)\n- [Applying best practices on internal\n search results](/search/docs/fundamentals/seo-starter-guide#no-find)\n- [Fixing hacked pages](/web/fundamentals/security/hacked)\n\n\nYou can also visit our [Search\nCentral Help Community](https://support.google.com/webmasters/community/) if you need any help.\n\n\nPosted by the Search Quality Team"]]