{"id":1803,"date":"2024-12-26T12:35:28","date_gmt":"2024-12-26T11:35:28","guid":{"rendered":"https:\/\/wpmastertoolkit.com\/module\/verrouiller-lurl-du-site\/"},"modified":"2025-01-01T16:08:14","modified_gmt":"2025-01-01T15:08:14","slug":"verrouiller-lurl-du-site","status":"publish","type":"module","link":"https:\/\/wpmastertoolkit.com\/en\/module\/lock-site-lurl\/","title":{"rendered":"Lock site URL"},"content":{"rendered":"<h1 class=\"wp-block-heading\">Lock your site URL with WPMasterToolKit's Lock Site URL module<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">In the world of WordPress, it can sometimes be crucial to lock down certain features to prevent unwanted changes. That's where the <strong>Lock Site URL<\/strong> from <strong>WPMasterToolKit<\/strong>. This module has been developed to help site administrators prevent unwanted changes to the site URL. This can prevent human errors or harmful changes that could disrupt your site's connectivity.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which plug-in can the Lock Site URL module replace?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Although WordPress offers a certain intrinsic flexibility for changing your site's URL from the general settings, there isn't directly a classic plugin dedicated solely to site URL locking. However, some security solutions do push the URL locking functionality. WPMasterToolKit's Lock Site URL module fills this niche perfectly, offering a simple and effective method of maintaining this stability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Main features of the Lock Site URL module<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This module activates a set of actions and filters to lock the site's URL:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Removes all filters on site URL options such as <code data-no-auto-translation=\"\">home_url<\/code> and <code data-no-auto-translation=\"\">site_url<\/code>.<\/li>\n\n\n\n<li>Adds constants to the configuration file wp-config.php to define and lock the values of <code data-no-auto-translation=\"\">WP_HOME<\/code> and <code data-no-auto-translation=\"\">WP_SITEURL<\/code>if they aren't already.<\/li>\n\n\n\n<li>Prevent URL \"relocation\" option by setting <code data-no-auto-translation=\"\">RELOCATE<\/code> on <code data-no-auto-translation=\"\">false<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to use this module<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To use the Lock Site URL module, simply activate it via the WPMasterToolKit dashboard. Once activated, the module will take care of locking the site URL by adding and removing the necessary filters. You won't have to do anything else, and your URLs will be secure against unwanted changes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img alt=\"General WordPress settings with enhanced security.\" fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"393\" src=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-43-1024x393.png\" class=\"wp-image-2931\" srcset=\"https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-43-1024x393.png 1024w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-43-300x115.png 300w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-43-768x295.png 768w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-43-1536x589.png 1536w, https:\/\/wpmastertoolkit.com\/wp-content\/uploads\/2024\/12\/image-43.png 1807w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Technical choices behind the Lock Site URL module<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The module primarily uses WordPress filters to ensure that all possible modifications to site URLs via the administration interface are neutralized. This is achieved by removing key filters from the URL options. When the module is activated, constants are set in the configuration file. This mechanism helps ensure that even at advanced development levels, URL parameters remain constant and intact, guaranteeing site consistency and security.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">As a WordPress site administrator, protecting your site URL from accidental or malicious modifications is an essential security measure. WPMasterToolKit's Lock Site URL module offers a simple and effective solution to achieve this goal. Whether you're a novice or an experienced developer, this module will prove invaluable in maintaining the stability of your WordPress site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>WPMasterToolKit's Lock Site URL module is designed to secure WordPress sites by preventing unwanted changes to the site URL. It replaces the absence of a dedicated plugin by locking the URL via actions and filters, and by adding constants to the wp-config.php file. Once activated, the module ensures that URLs remain stable and secure, protecting the site from possible human error or harmful modifications.<\/p>","protected":false},"featured_media":0,"parent":0,"template":"","meta":{"_acf_changed":true,"_seopress_titles_title":"S\u00e9curisez votre URL WordPress avec Lock Site URL","_seopress_titles_desc":"Prot\u00e9gez l'URL de votre site WordPress contre les modifications ind\u00e9sirables avec Lock Site URL de WPMasterToolKit. Simple, efficace, essentiel.","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"both","_seopress_redirections_param":"","_seopress_redirections_type":301,"_seopress_analysis_target_kw":"","_seopress_news_disabled":"","_seopress_video_disabled":"","_seopress_video":[],"_seopress_pro_schemas_manual":[],"_seopress_pro_rich_snippets_disable_all":"","_seopress_pro_rich_snippets_disable":[],"_seopress_pro_schemas":[],"_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-1803","module","type-module","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/wpmastertoolkit.com\/en\/wp-json\/wp\/v2\/module\/1803","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=1803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}