{"id":1807,"date":"2024-12-17T10:47:10","date_gmt":"2024-12-17T09:47:10","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/deplacer-lurl-de-connexion\/"},"modified":"2025-03-13T10:53:08","modified_gmt":"2025-03-13T09:53:08","slug":"deplacer-lurl-de-connexion","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/move-login-url\/","title":{"rendered":"Move login URL"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Strengthen the Security of Your WordPress Site with the WPMasterToolKit \"Move Login URL\" Module<\/h1>\n\n\n\n<p>The default WordPress login page, accessible via <code data-no-auto-translation=\"\">wp-login.php<\/code>is a frequent target of brute-force attacks and hacking attempts. To enhance your site's security, the <strong>Move Login URL<\/strong> in WPMasterToolKit lets you easily modify the connection URL and restrict access to <code data-no-auto-translation=\"\">wp-admin<\/code> to connected users.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why use this module?<\/h2>\n\n\n\n<p>The module <strong>Move Login URL<\/strong> adds an essential layer of protection to your WordPress site. By masking and customizing the login URL, it dramatically reduces the risk of automated attacks while offering complete flexibility to customize the user experience. This module can replace well-known plugins such as <strong>WPS Hide Login<\/strong> or even <strong>Move Login<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Main features of the Move Login URL module<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Customize login URL :<\/strong> Change the default URL of <code data-no-auto-translation=\"\">wp-login.php<\/code> for a personalized URL of your choice.<\/li>\n\n\n\n<li><strong>Secure redirection :<\/strong> Unauthenticated users attempting to access <code data-no-auto-translation=\"\">wp-login.php<\/code> or to the <code data-no-auto-translation=\"\">wp-admin<\/code> are automatically redirected to a custom URL (such as a 404 page).<\/li>\n\n\n\n<li><strong>Enhanced protection :<\/strong> Prevents unauthorized access to sensitive areas of the site, including the dashboard.<\/li>\n\n\n\n<li><strong>Intuitive configuration :<\/strong> A simple interface lets you define your new connection URL and your redirection URL.<\/li>\n\n\n\n<li><strong>Multisite compatibility :<\/strong> Works perfectly with multi-site installations.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">How do I use the Move Login URL module?<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Activate the :<\/strong> Access the WPMasterToolKit dashboard and activate the module <strong>Move Login URL<\/strong>.<\/li>\n\n\n\n<li><strong>Customize the login URL :<\/strong>\n<ul class=\"wp-block-list\">\n<li>Go to the \"Move Login URL\" submenu in the WPMasterToolKit settings.<\/li>\n\n\n\n<li>Enter a new URL for the login page in the dedicated field (for example, <code data-no-auto-translation=\"\">mon-acc\u00e8s<\/code> instead of <code data-no-auto-translation=\"\">wp-login.php<\/code>).<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Configure the redirection URL:<\/strong>\n<ul class=\"wp-block-list\">\n<li>Define a URL to which unauthenticated users will be redirected when trying to access unauthorized areas.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Save your settings :<\/strong> Click on \"Save\" to apply your changes.<\/li>\n\n\n\n<li><strong>Go to your new URL :<\/strong> Your new login URL is now in place, and access to <code data-no-auto-translation=\"\">wp-login.php<\/code> is blocked.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"WordPress login URL change interface\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"271\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-47-1024x271.png\" class=\"wp-image-2938\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-47-1024x271.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-47-300x79.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-47-768x203.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-47-1536x407.png 1536w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-47.png 1804w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">403 for not logged in on \/wp-admin<\/h2>\n\n\n\n<p>The new PRO option of the <strong>Move Login URL<\/strong> (version \u2264 2.4.0) blocks access to <code data-no-auto-translation=\"\">\/wp-admin<\/code> for non-connected users by returning an error <strong>403 Forbidden<\/strong>. In concrete terms, when a visitor tries to access this URL directly without being authenticated, the server blocks the request before it reaches WordPress, thus reducing server load and improving security.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"94\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/03\/image-1024x94.png\" alt=\"403 for not logged in on \/wp-admin\" class=\"wp-image-4450\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/03\/image-1024x94.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/03\/image-300x28.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/03\/image-768x71.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/03\/image-1536x141.png 1536w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/03\/image-18x2.png 18w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2025\/03\/image.png 1565w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This restriction is implemented via specific rules:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>On Apache<\/strong> A directive <code data-no-auto-translation=\"\">.htaccess<\/code> prevents access to non-connected users.<\/li>\n\n\n\n<li><strong>On Nginx<\/strong> One block <code data-no-auto-translation=\"\">server<\/code> checks for the presence of a WordPress session cookie before allowing access.<\/li>\n<\/ul>\n\n\n\n<p>Enabling this feature improves resistance to brute-force attacks and prevents malicious visitors from scanning <code data-no-auto-translation=\"\">\/wp-admin<\/code>and offers an extra layer of protection for your WordPress site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Use cases<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Improving safety :<\/strong> By hiding the default login URL, you make your site less accessible to malicious bots.<\/li>\n\n\n\n<li><strong>Advanced customization :<\/strong> Offer a unique user experience by adapting the login URL to your brand.<\/li>\n\n\n\n<li><strong>Reduce the risk of attack:<\/strong> Block unauthorized access attempts to <code data-no-auto-translation=\"\">wp-login.php<\/code> and <code data-no-auto-translation=\"\">wp-admin<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Technical documentation: the hooks used<\/h2>\n\n\n\n<p>The module uses several WordPress hooks to modify default behaviors:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Filter <code data-no-auto-translation=\"\">login_url<\/code><\/strong><br>Replace the default URL for <code data-no-auto-translation=\"\">wp-login.php<\/code> with a personalized URL.<br>Example: <code data-no-auto-translation=\"\">add_filter( 'login_url', array( $this, 'login_url' ), 10, 3 );<\/code><\/li>\n\n\n\n<li><strong>Filter <code data-no-auto-translation=\"\">wp_redirect<\/code><\/strong><br>Automatically redirects unauthorized requests to the defined redirection URL.<br>Example: <code data-no-auto-translation=\"\">add_filter( 'wp_redirect', array( $this, 'wp_redirect' ), 10, 2 );<\/code><\/li>\n\n\n\n<li><strong>Action <code data-no-auto-translation=\"\">template_redirect<\/code><\/strong><br>Intercepts requests to <code data-no-auto-translation=\"\">wp-login.php<\/code> or <code data-no-auto-translation=\"\">wp-admin<\/code> to redirect offline users.<br>Example: <code data-no-auto-translation=\"\">add_action( 'template_redirect', array( $this, 'redirect_export_data' ) );<\/code><\/li>\n\n\n\n<li><strong>Action <code data-no-auto-translation=\"\">site_url<\/code><\/strong><br>Modifies the URL used for internal redirects.<br>Example: <code data-no-auto-translation=\"\">add_filter( 'site_url', array( $this, 'site_url' ), 10, 4 );<\/code><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Our technical choices<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Simplicity and efficiency:<\/strong> The module relies on native WordPress hooks to guarantee optimal performance and maximum compatibility with other extensions.<\/li>\n\n\n\n<li><strong>Increased safety :<\/strong> Custom URLs and redirects prevent bots and malicious users from accessing the default login page.<\/li>\n\n\n\n<li><strong>Ease of use :<\/strong> The intuitive interface makes it easy for non-technical users to configure their settings.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The module <strong>Move Login URL<\/strong> from WPMasterToolKit is a must-have solution for strengthening the security of your WordPress site. With quick and easy configuration, you can protect your site against brute-force attacks and deliver a more personalized user experience. Try it today to protect your site and its users.<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Enhance the security of your WordPress site with WPMasterToolKit's Move Login URL module. Customize the login URL, block access to wp-login.php and wp-admin for non-logged-in users, and redirect them automatically. A simple, effective solution to reduce the risk of hacking and improve the user experience.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"S\u00e9curisez votre site avec Move Login URL WordPress","_seopress_titles_desc":"Prot\u00e9gez efficacement votre WordPress des pirates avec le module Move Login URL. Masquez l'URL wp-login.php et renforcez votre s\u00e9curit\u00e9 en un clic.","_seopress_robots_index":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true},"class_list":["post-1807","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module"}],"about":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/types\/module"}],"wp:attachment":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/media?parent=1807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}