{"id":30887,"date":"2021-10-16T15:00:16","date_gmt":"2021-10-16T13:00:16","guid":{"rendered":"https:\/\/qodeinteractive.com\/magazine\/?p=30887"},"modified":"2021-10-13T10:37:59","modified_gmt":"2021-10-13T08:37:59","slug":"how-to-block-nsfw-content-on-wordpress-website","status":"publish","type":"post","link":"https:\/\/qodeinteractive.com\/magazine\/how-to-block-nsfw-content-on-wordpress-website\/","title":{"rendered":"How to Block NSFW Content on Your WordPress Website"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_column_text]Creating content is hard, and yet, content is what drives your website visits and develops your traffic. This is why even a small website often has a group of people behind it, ensuring smooth running and a constant flow of content. But there are other ways for websites to gain access to content visitors will want to see: <strong>user-generated content.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]<a href=\"https:\/\/qodeinteractive.com\/magazine\/user-submitted-posts-wordpress\/\">Allowing user-submitted posts<\/a> on your website is one, setting up an <a href=\"https:\/\/qodeinteractive.com\/magazine\/wordpress-forum-plugins\/\">online forum<\/a> is another, while WordPress\u2018s own comments functionality is a third way for user-generated content to end up on your website, and that\u2019s only scratching the surface. But what if your visitors try to <strong>upload content you do not approve of<\/strong>? Your website is your own responsibility, and<strong> if you don\u2018t want NSFW content on your website<\/strong>, you need to find ways to filter it. This is what this tutorial is all about. But before we show you how to set up a filter for NSFW content, we\u2018d like to discuss what the phrase even means. Here\u2018s what we\u2018d like to talk about:[\/vc_column_text][vc_empty_space height=&#8221;22px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#what-is-nsfw-content\">What is NSFW Content<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#why-block-nsfw-content\">Why Block NSFW Content on Your Website<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;5px&#8221;]<ul class=\"qodef-unordered-list-item qodef-toc\">\n    <li>\n\t        <div class=\"qodef-ul-title-holder\">\n            <span class=\"qodef-ul-title-content\"><a href=\"#how-to-block-nsfw-content\">How to Block NSFW Content Using a Plugin<\/a><\/span>        <\/div>\n            <\/li>\n<\/ul>[vc_empty_space height=&#8221;80px&#8221;][vc_widget_sidebar sidebar_id=&#8221;new-top-picks-banner&#8221;][vc_empty_space height=&#8221;80px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"what-is-nsfw-content\"><\/a>What is NSFW Content<\/h2>\n<p>[\/vc_column_text][vc_column_text]NSFW stands for \u201cNot Safe For Work\u201d. Of course, the exact circumstances, expectedly, vary from workplace to workplace, and aren\u2019t even limited to just work &#8211; the abbreviation <strong>typically refers to graphic internet content intended for personal viewing.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]This broad definition may encompass textual, pictorial, or video content inappropriate for the workplace for various reasons such as nudity, violence, or gore. For the purposes of this tutorial, <strong>we will take NSFW content to mean erotic images<\/strong>, be they photographs or graphics, as it is the kind of inappropriate content most likely to be uploaded and shared due to its ubiquity and popularity.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"why-block-nsfw-content\"><\/a>Why Block NSFW Content on Your Website<\/h2>\n<p>[\/vc_column_text][vc_column_text]You have set up a website, and have built a community which interacts and generates interest in your website and drives traffic to it. Why should you care if they post some NSFW content every now and again? Well, there are several reasons, in fact, but they boil down to two:<br \/>\n[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Firstly, depending on the jurisdiction, freely sharing certain content may not only be workplace inappropriate \u2013<strong> it may well be illegal<\/strong>, and <strong>a website owner or operator might be liable<\/strong>. You should have a handle on what goes on your website at all times. Even if sharing NSFW content is not illegal in general terms, most jurisdictions have outlawed sharing it with children and minors.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Secondly,<strong> it may be off-putting<\/strong> for some visitors. If your website and your community isn\u2018t specifically formed around sharing what we termed NSFW content, you might find yourself losing traffic over puerile conduct of a minority of your visitors. Specifically, if you are trying to build a family-friendly environment, you need to have a mechanism in place to control the content of that environment. Otherwise, you risk problems with, say, outraged parents who might use parental controls to block your website even if its primary purpose is not sharing of NSFW content.[\/vc_column_text][vc_empty_space height=&#8221;68px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\"><a id=\"how-to-block-nsfw-content\"><\/a>How to Block NSFW Content Using a Plugin<\/h2>\n<p>[\/vc_column_text][vc_column_text]If you want to filter your user-uploaded content, you will need some help. Fortunately, the team behind <a href=\"https:\/\/moderatecontent.com\/\" target=\"_blank\" rel=\"noopener\">ModerateContent.com<\/a> can help. They run a commercial service which uses AI to filter out sensitive content.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]In order to integrate their service with WordPress, they have developed a plugin (currently out of date, but not obsolete). The plugin is called <a href=\"https:\/\/wordpress.org\/plugins\/image-nsfw\/\" target=\"_blank\" rel=\"noopener\">Image (NSFW)<\/a> and you need to install and activate it in order to start filtering out NSFW content. The plugin uses ModerateContent\u2018s free API in order to filter out any inappropriate content.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]Once you have done that, you need to configure your plugin. You can access the plugin\u2018s settings panel by navigating to <strong>NSFW Image\/Settings<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/NSFW-Settings.jpg\" class=\"attachment-full size-full\" alt=\"NSFW Settings\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/NSFW-Settings.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/NSFW-Settings-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/NSFW-Settings-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/NSFW-Settings-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]To register your website for <a href=\"https:\/\/moderatecontent.com\/#pricing\" target=\"_blank\" rel=\"noopener\">ModerateContent\u2018s free pricing plan<\/a>, click the <strong>Register \u2013 One Click (Free)<\/strong> buton.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Register.jpg\" class=\"attachment-full size-full\" alt=\"Register\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Register.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Register-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Register-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Register-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]You will then have enabled the settings panel. Here you will find the free API key already input, and you can test it to see whether the plugin works by clicking on the <strong>Test<\/strong> button.[\/vc_column_text][vc_empty_space height=&#8221;28px&#8221;][vc_column_text]The options below allow you to the plugin to automatically filter each uploaded image. <strong>Enable Debug Logging<\/strong> will allow you to see the plugin\u2018s logs in detail,<strong> Enable Action Remove<\/strong> enables the plugin to automatically remove an offending image, <strong>Enable Action Email<\/strong> allows you to notify an admin when an inappropriate image is detected, the <strong>Warn When Image<\/strong> control governs the rating for which the plugin reacts to the image, while <strong>Manual Review Level<\/strong> lets you control at which rating your admins will need to review an image.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"653\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Key-Options.jpg\" class=\"attachment-full size-full\" alt=\"Key Options\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Key-Options.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Key-Options-300x202.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Key-Options-768x518.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Key-Options-620x418.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]In the subsequent section, you need to enable the plugin to work for each of the events during which a picture may be uploaded. These triggers are all set to <em>True<\/em> by default, meaning that the plugin will always react. If you, for any reason, want to enable free sharing of NSFW content in certain contexts, you can enable it. Once you are satisfied with your settings, click <strong>Save Changes<\/strong>.[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"540\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Save-Changes.jpg\" class=\"attachment-full size-full\" alt=\"Save Changes\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Save-Changes.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Save-Changes-300x167.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Save-Changes-768x428.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Save-Changes-620x346.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;38px&#8221;][vc_column_text]Once the plugin starts filtering your users\u2018 images, you will be able to find them by navigating to<strong> Image (NSFW)\/Images.<\/strong>[\/vc_column_text][vc_empty_space height=&#8221;50px&#8221;]<div class=\"qodef-single-image-holder   qodef-has-border \">\n    <div class=\"qodef-si-inner\" >\n                                    <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"518\" src=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Image.jpg\" class=\"attachment-full size-full\" alt=\"Image\" srcset=\"https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Image.jpg 969w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Image-300x160.jpg 300w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Image-768x411.jpg 768w, https:\/\/qodeinteractive.com\/magazine\/wp-content\/uploads\/2021\/10\/Image-620x331.jpg 620w\" sizes=\"auto, (max-width: 969px) 100vw, 969px\" \/>                        <\/div>\n<\/div>[vc_empty_space height=&#8221;78px&#8221;][\/vc_column][\/vc_row][vc_row][vc_column][vc_column_text]<\/p>\n<h2 class=\"qodef-h4\">In Conclusion<\/h2>\n<p>[\/vc_column_text][vc_column_text]As you can see, there are plenty of reasons and at least one easy way to filter out all the NSFW content (or at least image content) from your website. A thing you need to remember, though, is that AI is (thus far) no replacement for manual reviewing of data, and you may end up blocking otherwise allowable content. Another thing to consider is that visitors will likely appreciate knowing the rules in advance: fair is fair, after all. So we suggest notifying them that their posts will be subject to automatic filtering. Still, whether you don\u2018t want to fall afoul of the law or easily outraged people, now you know how to do it.<br \/>\n[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Reviewing loads of images manually can be time-consuming. Block NSFW content in WordPress automatically &#8211; we will show you how.<\/p>\n","protected":false},"author":16990,"featured_media":30900,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[27,4,13],"class_list":["post-30887","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-content","tag-tips","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/30887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/users\/16990"}],"replies":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/comments?post=30887"}],"version-history":[{"count":0,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/posts\/30887\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media\/30900"}],"wp:attachment":[{"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/media?parent=30887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/categories?post=30887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qodeinteractive.com\/magazine\/wp-json\/wp\/v2\/tags?post=30887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}