{"id":3637,"date":"2017-06-21T07:37:21","date_gmt":"2017-06-21T07:37:21","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=3637"},"modified":"2017-06-21T07:37:21","modified_gmt":"2017-06-21T07:37:21","slug":"disable-comments-drupal","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/","title":{"rendered":"How To Disable Comments In Drupal?"},"content":{"rendered":"<p>If you are working with Drupal, you will often encounter issues with spam bots that post a huge number of spam comments. This is specifically true if you are working with an older version of Drupal.<!--more--><\/p>\n<p>The first step to undertake in this case is to disable the comments module until you delete all the spam comment posts.<\/p>\n<p><strong>You have 2 options for doing this:<\/strong><\/p>\n<p><strong>#1 \u2013 Through Drupal Admin<\/strong><\/p>\n<ul>\n<li>Login to your Drupal admin area<\/li>\n<li>Go to Administrator &gt;&gt; Content &gt;&gt; Content Types<\/li>\n<li>Edit the content type you prefer<\/li>\n<li>Ensure that the comments are on \u2018OFF\u2019 mode by default<\/li>\n<\/ul>\n<p><strong>If you are using the Drupal version 7.x\/8.x, you can disable the spam comments through these steps:<\/strong><\/p>\n<ul>\n<li>Login to your admin area<\/li>\n<li>Go to Structure &gt;&gt; Content &gt;&gt; Types &gt;&gt;Comment Settings<\/li>\n<li>Select the option \u2018Closed\u2019 present under \u2018Default comment setting\u2019<\/li>\n<li>Save the changes<\/li>\n<\/ul>\n<p><strong>#2 \u2013 By Executing SQL Query<\/strong><\/p>\n<p>Deleting the spam comments can also be done through phpMyAdmin by executing the SQL query mentioned below in your database:<\/p>\n<p>UPDATE system SET status = &#8216;0&#8217; WHERE filename =\u00a0 &#8216;modules\/comment\/comment.module&#8217;;<\/p>\n<p>When you would like to enable the comments option again, execute a reverse query:<\/p>\n<p>UPDATE system SET status = &#8216;1&#8217; WHERE filename =\u00a0 &#8216;modules\/comment\/comment.module&#8217;;<\/p>\n<p>It is recommended to use a CAPTCHA module by Akismet to block the spam comments. Even if a spam bot passes the Captcha, Akismet will check it through a spam database. Only if the source of comment is legitimate, it will appear on your dashboard for you to approve or disapprove or delete it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are working with Drupal, you will often encounter issues with spam bots that post a huge number of spam comments. This is specifically true if you are working with an older version of Drupal.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[164,310,235,309,55],"class_list":["post-3637","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-cms-faq","tag-blog","tag-comments","tag-drupal","tag-spam-comments","tag-website"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Disable Comments In Drupal?<\/title>\n<meta name=\"description\" content=\"Step wise process to disable comments in Drupal. Remove spam comments while your comments module is disabled, easy steps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Disable Comments In Drupal?\" \/>\n<meta property=\"og:description\" content=\"Step wise process to disable comments in Drupal. Remove spam comments while your comments module is disabled, easy steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-21T07:37:21+00:00\" \/>\n<meta name=\"author\" content=\"Ujwala\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ujwala\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/\",\"name\":\"How To Disable Comments In Drupal?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"datePublished\":\"2017-06-21T07:37:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\"},\"description\":\"Step wise process to disable comments in Drupal. Remove spam comments while your comments module is disabled, easy steps.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Disable Comments In Drupal?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8\",\"name\":\"Ujwala\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g\",\"caption\":\"Ujwala\"},\"description\":\"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/ujwala\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Disable Comments In Drupal?","description":"Step wise process to disable comments in Drupal. Remove spam comments while your comments module is disabled, easy steps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/","og_locale":"en_GB","og_type":"article","og_title":"How To Disable Comments In Drupal?","og_description":"Step wise process to disable comments in Drupal. Remove spam comments while your comments module is disabled, easy steps.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2017-06-21T07:37:21+00:00","author":"Ujwala","twitter_misc":{"Written by":"Ujwala","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/","name":"How To Disable Comments In Drupal?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"datePublished":"2017-06-21T07:37:21+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8"},"description":"Step wise process to disable comments in Drupal. Remove spam comments while your comments module is disabled, easy steps.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/disable-comments-drupal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How To Disable Comments In Drupal?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/485f82549b85b9f4c82dc208c42964a8","name":"Ujwala","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8d26ea4b9b2d83ae90b67f6bf5eefbca?s=96&d=blank&r=g","caption":"Ujwala"},"description":"My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/ujwala\/"}]}},"views":2338,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/3637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=3637"}],"version-history":[{"count":2,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/3637\/revisions"}],"predecessor-version":[{"id":3639,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/3637\/revisions\/3639"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=3637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=3637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=3637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}