{"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-03-16T12:12:02","modified_gmt":"2026-03-16T12:12:02","slug":"8360295-hostinger-website-builder-how-to-disable-copying-or-selecting-website-content","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/8360295-hostinger-website-builder-how-to-disable-copying-or-selecting-website-content\/","title":{"rendered":"Hostinger Website Builder: How to Disable Copying or Selecting Website Content"},"content":{"rendered":"<p class=\"no-margin\">If you use <b>Hostinger Website Builder<\/b> and want to prevent copying or selecting your website content, follow the steps below. <\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">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. <\/p>\n<p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Additionally, it can be seen as an annoying user experience, and it&rsquo;s not recommended for most websites. <\/p>\n<p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Consider other options like watermarking images, using server-side security, or relying on copyright protection. <\/p>\n<\/div><h2 id=\"h_e9a3daea31\">Copy the Code<\/h2><p class=\"no-margin\">Copy the preferred code &#128071; <\/p><p class=\"no-margin\">\n<\/p><h3 id=\"h_73fa38fcd8\">Disallow the Right Click<\/h3><pre><code>&lt;script&gt;<br>    document.addEventListener('contextmenu', event =&gt; event.preventDefault());<br>&lt;\/script&gt;<\/code><\/pre><h3 id=\"h_b5e6fac686\">Prevent From Selecting Text<\/h3><pre><code>&lt;script&gt;<br>    document.onselectstart = () =&gt; {<br>        event.preventDefault();<br>    }<br>&lt;\/script&gt;<\/code><\/pre><p class=\"no-margin\">\n<\/p><h2 id=\"h_0f2882dc55\">Paste the Code<\/h2><p class=\"no-margin\">Go to your website&rsquo;s <b>Settings<\/b> &rarr; <b>Integrations<\/b>, and paste the code in the <b><a href=\"\/support\/6445594-website-builder-how-to-add-custom-code-to-the-head-head-part-of-a-website-s-code\" target=\"_blank\" class=\"intercom-content-link\">Custom code<\/a><\/b> field. Then, <b>save the changes<\/b> and <b>update your website<\/b>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Disallowing to copy or select content in Hostinger Website Builder<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[281],"tags":[],"class_list":["post-621","post","type-post","status-publish","format-standard","hentry","category-design"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/8360295-hostinger-website-builder-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":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/621\/revisions"}],"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}]}}