{"id":554,"date":"2018-06-12T06:49:06","date_gmt":"2018-06-12T06:49:06","guid":{"rendered":"https:\/\/ukr.host\/kb\/?p=554"},"modified":"2025-10-06T15:12:39","modified_gmt":"2025-10-06T15:12:39","slug":"joomla-hack-zachita-site-ot-vzloma","status":"publish","type":"post","link":"https:\/\/ukr.host\/kb\/en\/hosting\/joomla-hack-zachita-site-ot-vzloma\/","title":{"rendered":"Joomla Hack \u2013 Protecting Your Site from Hacking"},"content":{"rendered":"<p>To protect a site created on the Joomla engine from hacking, you need to perform a number of simple steps:<\/p>\n<ul>\n<li>1.      Setting an Administrator password. If this function is not provided by the hosting panel, it can be done manually. To do this, you need to create a .htaccess file in the root directory and enter the following lines there:\n<pre lang=\"html\" escaped=\"true\">\r\nAuthName \"arbitrary_text\"\r\nAuthType Basic \r\nRequire valid-user\r\nAuthUserFile \"full_path_to *file*.htpasswd\"\r\n<\/pre>\n<p>In the AuthName field, you need to enter text information about what will be accessed. In the AuthUserFile field, you need to enter the full path to the .htaccess file. To maximize the security of your site, create a separate directory on the hosting where network access will be denied. Example of full path to file &#8211; \/var\/www\/vhosts\/test-account.pp.ua\/.htpasswd or in the case of Windows operating system: c:\/my_site\/.htpasswd.<br \/>\nThe htpasswd file will be generated by a utility that is included in the Apache web server build. To do this, enter the following data in the command line:<\/p>\n<pre lang=\"html\" escaped=\"true\">\r\nhtpasswd -bc .htpasswd username user_password\r\n<\/pre>\n<p>When the process is complete, move the file to the AuthUserFile directory specified in the file.<br \/>\nAfter completing these settings, to access the protected directory or page, you will need to additionally enter a login and password.\n<\/li>\n<li>2.      Hide the presence of joomla\n<ul>\n<li>2.1 Do not use default table prefixes (jos_ in Joomla 1.5) in the database.<\/li>\n<li>2.2 Replace or delete <meta name=\"generator\" content=\"Joomla! 1.5 - Open Source Content Management\" \/>. This will significantly reduce the risk of your site being hacked. To do this, in the index.php file, enter the code <?php $this->setGenerator(&#8216;Your-Site.ru&#8217;); ?>.<\/li>\n<li>2.3 Disable the ability to view module positions in the site template. To do this, use domain.ru\/?tp=1. However, this method of viewing module position is only possible for Joomla 1.5, while versions 1.6, 1.7, 2.5 it is not possible, as it is disabled by default.<\/li>\n<li>2.4 Using SEF. In the process of generating links, be sure to use SEF.<\/li>\n<\/ul>\n<\/li>\n<li>3.      Unused joomla files must be deleted\n<ul>\n<li>3.1 Delete all components, templates, and plugins that are not used.<\/li>\n<li>3.2 Get rid of files responsible for password reset and recovery. You can delete either the entire com_user folder (in the \/components folder) or the file responsible for reset &#8211; reset.php (in the \/components\/com_user\/models folder).<\/li>\n<\/ul>\n<\/li>\n<li>4.      All rights must be restricted. To restrict access to folders and files, use the following rights:\n<pre lang=\"html\" escaped=\"true\">\r\ntemplates 555 (recursively)\r\nfiles in root directory 444\r\ntmp folder 705\r\nlogs folder 705\r\n<\/pre>\n<\/li>\n<li>5.      To detect viruses in Joomla at the first appearance, we recommend using Eyesite, jFireWall, RSFirewall.<\/li>\n<\/ul>\n<p>If you don&#8217;t want to spend time on this and at the same time not worry about site security, use the services of UkrHost company. We provide not only hosting and domains, but also perform functional website maintenance. Our highly qualified employees will ensure the highest possible level of protection for your page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To protect a site created on the Joomla engine from hacking, you need to perform a number of simple steps: 1. Setting an Administrator password. If this function is not provided by the hosting panel, it can be done manually&#8230;.<br \/><a class=\"read-more-button\" href=\"https:\/\/ukr.host\/kb\/en\/hosting\/joomla-hack-zachita-site-ot-vzloma\/\">\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435<\/a><\/p>\n","protected":false},"author":1,"featured_media":558,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,7],"tags":[30,59,17,54],"class_list":["post-554","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vzlom-i-zachita-site","category-hosting","tag-hosting","tag-joomla","tag-seo","tag-virus"],"translation":{"provider":"WPGlobus","version":"3.0.0","language":"en","enabled_languages":["ru","uk","en"],"languages":{"ru":{"title":true,"content":true,"excerpt":false},"uk":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.5 (Yoast SEO v26.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Joomla Hack \u2013 Protecting Your Site from Hacking - Ukr.Host Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Joomla Hack \u2013 Protecting Your Site from Hacking - Ukr.Host Knowledge Base\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/\" \/>\n<meta property=\"og:site_name\" content=\"Ukr.Host Knowledge Base\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-12T06:49:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-06T15:12:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"216\" \/>\n\t<meta property=\"og:image:height\" content=\"206\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"ruskam\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ruskam\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/\"},\"author\":{\"name\":\"ruskam\",\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#\/schema\/person\/3c7fa537caf04a967d331159cd128f65\"},\"headline\":\"Joomla Hack \u2013 Protecting Your Site from Hacking\",\"datePublished\":\"2018-06-12T06:49:06+00:00\",\"dateModified\":\"2025-10-06T15:12:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/\"},\"wordCount\":1173,\"publisher\":{\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#organization\"},\"image\":{\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg\",\"keywords\":[\"hosting\",\"joomla\",\"seo\",\"virus\"],\"articleSection\":[\"Website hacking and protection\",\"Hosting\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/\",\"url\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/\",\"name\":\"Joomla Hack \u2013 Protecting Your Site from Hacking - Ukr.Host Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg\",\"datePublished\":\"2018-06-12T06:49:06+00:00\",\"dateModified\":\"2025-10-06T15:12:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#primaryimage\",\"url\":\"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg\",\"contentUrl\":\"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg\",\"width\":216,\"height\":206,\"caption\":\"Joomla defence\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ukr.host\/kb\/uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Joomla hack \u2013 \u0437\u0430\u0449\u0438\u0442\u0430 \u0441\u0430\u0439\u0442\u0430 \u043e\u0442 \u0432\u0437\u043b\u043e\u043c\u0430\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#website\",\"url\":\"https:\/\/ukr.host\/kb\/uk\/\",\"name\":\"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u044c Ukr.Host\",\"description\":\"Useful articles about hosting, domains and servers.\",\"publisher\":{\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ukr.host\/kb\/uk\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#organization\",\"name\":\"UkrHost\",\"url\":\"https:\/\/ukr.host\/kb\/uk\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2025\/12\/logo.jpg\",\"contentUrl\":\"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2025\/12\/logo.jpg\",\"width\":648,\"height\":307,\"caption\":\"UkrHost\"},\"image\":{\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#\/schema\/person\/3c7fa537caf04a967d331159cd128f65\",\"name\":\"ruskam\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ukr.host\/kb\/uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/219f09b013fa34010e8cf9182ca886a772d879221eee5f4da1ec75a87c9daef8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/219f09b013fa34010e8cf9182ca886a772d879221eee5f4da1ec75a87c9daef8?s=96&d=mm&r=g\",\"caption\":\"ruskam\"},\"url\":\"https:\/\/ukr.host\/kb\/en\/author\/ruskam\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Joomla Hack \u2013 Protecting Your Site from Hacking - Ukr.Host Knowledge Base","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:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/","og_locale":"en_US","og_type":"article","og_title":"Joomla Hack \u2013 Protecting Your Site from Hacking - Ukr.Host Knowledge Base","og_url":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/","og_site_name":"Ukr.Host Knowledge Base","article_published_time":"2018-06-12T06:49:06+00:00","article_modified_time":"2025-10-06T15:12:39+00:00","og_image":[{"width":216,"height":206,"url":"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg","type":"image\/jpeg"}],"author":"ruskam","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ruskam","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#article","isPartOf":{"@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/"},"author":{"name":"ruskam","@id":"https:\/\/ukr.host\/kb\/uk\/#\/schema\/person\/3c7fa537caf04a967d331159cd128f65"},"headline":"Joomla Hack \u2013 Protecting Your Site from Hacking","datePublished":"2018-06-12T06:49:06+00:00","dateModified":"2025-10-06T15:12:39+00:00","mainEntityOfPage":{"@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/"},"wordCount":1173,"publisher":{"@id":"https:\/\/ukr.host\/kb\/uk\/#organization"},"image":{"@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#primaryimage"},"thumbnailUrl":"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg","keywords":["hosting","joomla","seo","virus"],"articleSection":["Website hacking and protection","Hosting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/","url":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/","name":"Joomla Hack \u2013 Protecting Your Site from Hacking - Ukr.Host Knowledge Base","isPartOf":{"@id":"https:\/\/ukr.host\/kb\/uk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#primaryimage"},"image":{"@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#primaryimage"},"thumbnailUrl":"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg","datePublished":"2018-06-12T06:49:06+00:00","dateModified":"2025-10-06T15:12:39+00:00","breadcrumb":{"@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#primaryimage","url":"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg","contentUrl":"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2018\/06\/joomla_defence.jpg","width":216,"height":206,"caption":"Joomla defence"},{"@type":"BreadcrumbList","@id":"https:\/\/ukr.host\/kb\/hosting\/joomla-hack-zachita-site-ot-vzloma\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ukr.host\/kb\/uk\/"},{"@type":"ListItem","position":2,"name":"Joomla hack \u2013 \u0437\u0430\u0449\u0438\u0442\u0430 \u0441\u0430\u0439\u0442\u0430 \u043e\u0442 \u0432\u0437\u043b\u043e\u043c\u0430"}]},{"@type":"WebSite","@id":"https:\/\/ukr.host\/kb\/uk\/#website","url":"https:\/\/ukr.host\/kb\/uk\/","name":"\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u044c Ukr.Host","description":"Useful articles about hosting, domains and servers.","publisher":{"@id":"https:\/\/ukr.host\/kb\/uk\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ukr.host\/kb\/uk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ukr.host\/kb\/uk\/#organization","name":"UkrHost","url":"https:\/\/ukr.host\/kb\/uk\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ukr.host\/kb\/uk\/#\/schema\/logo\/image\/","url":"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2025\/12\/logo.jpg","contentUrl":"https:\/\/ukr.host\/kb\/wp-content\/uploads\/2025\/12\/logo.jpg","width":648,"height":307,"caption":"UkrHost"},"image":{"@id":"https:\/\/ukr.host\/kb\/uk\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/ukr.host\/kb\/uk\/#\/schema\/person\/3c7fa537caf04a967d331159cd128f65","name":"ruskam","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ukr.host\/kb\/uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/219f09b013fa34010e8cf9182ca886a772d879221eee5f4da1ec75a87c9daef8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/219f09b013fa34010e8cf9182ca886a772d879221eee5f4da1ec75a87c9daef8?s=96&d=mm&r=g","caption":"ruskam"},"url":"https:\/\/ukr.host\/kb\/en\/author\/ruskam\/"}]}},"_links":{"self":[{"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/posts\/554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/comments?post=554"}],"version-history":[{"count":6,"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/posts\/554\/revisions"}],"predecessor-version":[{"id":1069,"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/posts\/554\/revisions\/1069"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/media\/558"}],"wp:attachment":[{"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/media?parent=554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/categories?post=554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ukr.host\/kb\/en\/wp-json\/wp\/v2\/tags?post=554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}