{"id":1103,"date":"2011-12-30T16:27:08","date_gmt":"2011-12-30T16:27:08","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2011\/12\/30\/securing-the-admin-folder-in-opencart\/"},"modified":"2022-02-21T15:05:36","modified_gmt":"2022-02-21T20:05:36","slug":"securing-the-admin-folder-in-opencart","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/","title":{"rendered":"Securing the \/admin\/ folder in OpenCart"},"content":{"rendered":"<p>Since OpenCart is open source it can be a target for hackers since they already know the basic file structure and how the core code works. One of the easiest methods of securing your OpenCart dashboard is to rename the<em> \/admin\/<\/em> folder. \u00a0This will &#8216;hide&#8217; the folder from scripts and hackers specifically looking for the &#8216;admin&#8217; folder of OpenCart. Follow the steps below to change the <em>\/admin\/<\/em> folder&#8217;s name. Don\u2019t forget that once you do this, you\u2019ll need to use the new path to access your admin dashboard.<\/p>\n<h2>Secure the Admin Folder<\/h2>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\">Log into cPanel<\/a><\/li>\n<li>Click on <strong>File Manager<\/strong><\/li>\n<li>Use file manager to navigadeleting-an-affiliate-account-in-opencartte to the folder containing the \u201c<strong>admin<\/strong>\u201d folder<\/li>\n<li>Right click on the \u201c<strong>admin<\/strong>\u201d folder and select \u201c<strong>rename<\/strong>\u201d<\/li>\n<li>Type in your new name for the \u201c<strong>admin<\/strong>\u201d folder (you can change it to whatever you want but the more obscure the name the better such as \u201cADMIN889723\u201d)<\/li>\n<li>Now, open the<em> \/admin\/config.php<\/em> with the code editor (Remember, you changed the name of the folder. Replace &#8216;admin&#8217; with the new folder name).\n<p class=\"alert\">Important! There are several instances of &#8220;<em>admin<\/em>&#8221; throughout the config file. All instances must be changed for this to work.<\/p>\n<p>Below in <span style=\"color: #ff0000;\">Red<\/span> is the instances of <span style=\"color: #ff0000;\">admin<\/span> you will need to change.<\/p>\n<pre>\/\/ HTTP define('HTTP_SERVER', 'https:\/\/test.domain.com\/opencart\/<span style=\"color: #ff0000;\"><strong>admin<\/strong><\/span>\/'); define('HTTP_CATALOG', 'https:\/\/test.domain.com\/opencart\/');  \/\/ HTTPS define('HTTPS_SERVER', 'https:\/\/test.domain.com\/opencart\/<span style=\"color: #ff0000;\"><strong>admin<\/strong><\/span>\/'); define('HTTPS_CATALOG', '&gt;https:\/\/test.domain.com\/opencart\/');  \/\/ DIR define('DIR_APPLICATION', '\/home\/userna5\/public_html\/opencart\/<span style=\"color: #ff0000;\"><strong>admin<\/strong><\/span>\/'); define('DIR_SYSTEM', '\/home\/userna5\/public_html\/opencart\/system\/'); define('DIR_DATABASE', '\/home\/userna5\/public_html\/opencart\/system\/database\/'); define('DIR_LANGUAGE', '\/home\/userna5\/public_html\/opencart\/<span style=\"color: #ff0000;\"><strong>admin<\/strong><\/span>\/language\/'); define('DIR_TEMPLATE', '\/home\/userna5\/public_html\/opencart\/<span style=\"color: #ff0000;\"><strong>admin<\/strong><\/span>\/view\/template\/'); define('DIR_CONFIG', '\/home\/userna5\/public_html\/opencart\/system\/config\/'); define('DIR_IMAGE', '\/home\/userna5\/public_html\/opencart\/image\/'); define('DIR_CACHE', '\/home\/userna5\/public_html\/opencart\/system\/cache\/'); define('DIR_DOWNLOAD', '\/home\/userna5\/public_html\/opencart\/download\/'); define('DIR_LOGS', '\/home\/userna5\/public_html\/opencart\/system\/logs\/'); define('DIR_CATALOG', '\/home\/userna5\/public_html\/opencart\/catalog\/');  \/\/ DB define('DB_DRIVER', 'mysql'); define('DB_HOSTNAME', 'localhost'); define('DB_USERNAME', 'userna5_ocar341'); define('DB_PASSWORD', 'password'); define('DB_DATABASE', 'userna5_ocar341'); define('DB_PREFIX', 'oc_');<\/pre>\n<\/li>\n<li>There should be 5 instances referencing the <em>\/admin\/<\/em> folder that would need to be updated to the new name you changed the folder to<\/li>\n<\/ol>\n<p>You can also add another layer of protection to the dashboard by password protecting the <em>\/admin\/<\/em> folder. You can do this by following the tutorial on <a href=\"\/support\/edu\/cpanel\/password-protect-directory-cpanel\/\">password protecting directories<\/a>.<\/p>\n<p>If you need further assistance please feel free to ask a question on our support center website.<\/p>\n<h3>InMotion is Here to Help<\/h3>\n<p>With a dedicated server, you can easily manage your OpenCart application through SSH. This means fast access to your files from any location where you have online access. Also, you get the support \u00a0you need. Have questions with OpenCart? We have a education channel for that too. Check out our dedicated server review for more information about how we are here to help.<\/p>\n<p>Looking for a host for your OpenCart installation? Go to <a href=\"https:\/\/www.inmotionhosting.com\/opencart-hosting\" target=\"_blank\" rel=\"noopener\">OpenCart Hosting Accounts with Inmotion Hosting<\/a> for more information.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since OpenCart is open source it can be a target for hackers since they already know the basic file structure and how the core code works. One of the easiest methods of securing your OpenCart dashboard is to rename the \/admin\/ folder. \u00a0This will &#8216;hide&#8217; the folder from scripts and hackers specifically looking for the<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/\"> Read More ><\/a><\/p>\n","protected":false},"author":56983,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[81],"tags":[],"class_list":["post-1103","post","type-post","status-publish","format-standard","hentry","category-opencart"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Securing the \/admin\/ folder in OpenCart | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Learn how to secure the admin folder for your OpenCart shopping cart.\" \/>\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.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Securing the \/admin\/ folder in OpenCart | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Learn how to secure the admin folder for your OpenCart shopping cart.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-12-30T16:27:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-21T20:05:36+00:00\" \/>\n<meta name=\"author\" content=\"Carrie Smaha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@carriesmaha\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carrie Smaha\" \/>\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:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/\"},\"author\":{\"name\":\"Carrie Smaha\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8\"},\"headline\":\"Securing the \/admin\/ folder in OpenCart\",\"datePublished\":\"2011-12-30T16:27:08+00:00\",\"dateModified\":\"2022-02-21T20:05:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/\"},\"wordCount\":371,\"commentCount\":34,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"OpenCart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/\",\"name\":\"Securing the \/admin\/ folder in OpenCart | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2011-12-30T16:27:08+00:00\",\"dateModified\":\"2022-02-21T20:05:36+00:00\",\"description\":\"Learn how to secure the admin folder for your OpenCart shopping cart.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Securing the \/admin\/ folder in OpenCart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8\",\"name\":\"Carrie Smaha\",\"description\":\"Carrie Smaha is a Senior Marketing Operations leader with over 20 years of experience in digital strategy, web development, and IT project management. She specializes in go-to-market programs and SaaS solutions for WordPress and VPS Hosting, working closely with technical teams and customers to deliver high-performance, scalable platforms. At InMotion Hosting, she drives product marketing initiatives that blend strategic insight with technical depth.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/carriesmaha\/\",\"https:\/\/x.com\/carriesmaha\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/carries\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Securing the \/admin\/ folder in OpenCart | InMotion Hosting","description":"Learn how to secure the admin folder for your OpenCart shopping cart.","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.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/","og_locale":"en_US","og_type":"article","og_title":"Securing the \/admin\/ folder in OpenCart | InMotion Hosting","og_description":"Learn how to secure the admin folder for your OpenCart shopping cart.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2011-12-30T16:27:08+00:00","article_modified_time":"2022-02-21T20:05:36+00:00","author":"Carrie Smaha","twitter_card":"summary_large_image","twitter_creator":"@carriesmaha","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Carrie Smaha","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/"},"author":{"name":"Carrie Smaha","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8"},"headline":"Securing the \/admin\/ folder in OpenCart","datePublished":"2011-12-30T16:27:08+00:00","dateModified":"2022-02-21T20:05:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/"},"wordCount":371,"commentCount":34,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["OpenCart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/","name":"Securing the \/admin\/ folder in OpenCart | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2011-12-30T16:27:08+00:00","dateModified":"2022-02-21T20:05:36+00:00","description":"Learn how to secure the admin folder for your OpenCart shopping cart.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/securing-the-admin-folder-in-opencart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Securing the \/admin\/ folder in OpenCart"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8","name":"Carrie Smaha","description":"Carrie Smaha is a Senior Marketing Operations leader with over 20 years of experience in digital strategy, web development, and IT project management. She specializes in go-to-market programs and SaaS solutions for WordPress and VPS Hosting, working closely with technical teams and customers to deliver high-performance, scalable platforms. At InMotion Hosting, she drives product marketing initiatives that blend strategic insight with technical depth.","sameAs":["https:\/\/www.linkedin.com\/in\/carriesmaha\/","https:\/\/x.com\/carriesmaha"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/carries\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":81,"name":"OpenCart","slug":"opencart","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/opencart\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/1103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/56983"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=1103"}],"version-history":[{"count":4,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/1103\/revisions"}],"predecessor-version":[{"id":94310,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/1103\/revisions\/94310"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=1103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=1103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=1103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}