{"id":621,"date":"2023-09-12T08:11:49","date_gmt":"2023-09-12T08:11:49","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2023\/09\/12\/8360295-hostinger-website-builder-how-to-disable-copying-or-selecting-website-content\/"},"modified":"2026-10-29T14:43:19","modified_gmt":"2026-10-29T14:43:19","slug":"8360295-hostinger-ai-builder-manual-mode-how-to-disable-copying-or-selecting-website-content","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/8360295-hostinger-ai-builder-manual-mode-how-to-disable-copying-or-selecting-website-content\/","title":{"rendered":"Hostinger AI Builder: How to disable copying or selecting website content in manual mode"},"content":{"rendered":"<p class=\"no-margin\">Prevent visitors from copying or selecting content on your <a data-click-id=\"hgr-post-content-link-hostinger-ai-builder\" href=\"\/ai-builder\">Hostinger AI Builder<\/a> manual mode website using custom code.<\/p><p>Keep in mind that the below approach is not foolproof. Determined users can still access your content through other means, such as inspecting the page source or disabling JavaScript in their browser. Therefore, this method is not a robust way to protect your content. Additionally, it can be seen as an annoying user experience, and it&rsquo;s not recommended for most websites. Consider other options like watermarking images, using server-side security, or relying on copyright protection.<\/p><h2 id=\"h_e9a3daea31\">Copy the code<\/h2><p class=\"no-margin\">Copy the preferred code.<\/p><h3 id=\"h_73fa38fcd8\">Disallow the Right Click<\/h3><pre><code>&lt;script&gt;\r\n    document.addEventListener('contextmenu', event =&gt; event.preventDefault());\r\n&lt;\/script&gt;<\/code><\/pre><h3 id=\"h_b5e6fac686\">Prevent From Selecting Text<\/h3><pre><code>&lt;script&gt;\r\n    document.onselectstart = () =&gt; {\r\n        event.preventDefault();\r\n    }\r\n&lt;\/script&gt;<\/code><\/pre><h2 id=\"h_0f2882dc55\">Paste the code<\/h2><p class=\"no-margin\">Go to your website&rsquo;s <strong>More&nbsp;<\/strong> <strong>(&#8943;) menu<\/strong>&rarr; <a data-click-id=\"hgr-post-content-link-integrations\" href=\"\/support\/6463270-hostinger-ai-builder-manual-mode-how-to-add-integrations\/\"><b>Integrations<\/b><\/a>, and paste the code in the <b><a data-click-id=\"hgr-post-content-link-custom-code\" class=\"intercom-content-link\" href=\"\/support\/6445594-hostinger-ai-builder-manual-mode-how-to-integrate-custom-code\/\" target=\"_blank\" rel=\"noopener\">Custom code<\/a><\/b> field. Then, <b>save the changes<\/b> and <a data-click-id=\"hgr-post-content-link-update-your-website\" href=\"\/support\/6435697-hostinger-ai-builder-manual-mode-how-to-update-a-website\/\"><b>update your website<\/b><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prevent visitors from copying or selecting content on your Hostinger AI Builder manual mode website.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[293],"tags":[],"class_list":["post-621","post","type-post","status-publish","format-standard","hentry","category-ai-builder"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/8360295-hostinger-ai-builder-manual-mode-how-to-disable-copying-or-selecting-website-content","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=621"}],"version-history":[{"count":6,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/621\/revisions"}],"predecessor-version":[{"id":22605,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/621\/revisions\/22605"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}