' . esc_html( wp_parse_url( home_url(), PHP_URL_HOST ) ) . ') and visitors only use the static site.' ); CFSP_UI::toggle( 'private_mode', 'Hide this WordPress site from visitors and search engines', array( 'help' => 'Visitors who aren\'t logged in can\'t see any page, feed, sitemap or REST API response. Every WordPress response sends X-Robots-Tag: noindex, nofollow, and bots get a robots.txt that blocks everything. Static Push itself is let through with a secret key, so the static site is exported exactly as before and stays fully indexable.', 'warn' => 'wp-login.php stays reachable from the internet. Use a strong password, and ideally a login limiter or two-factor login.', ) ); CFSP_UI::select( 'private_action', 'Visitors see', array( 'login' => 'The WordPress login page', 'notfound' => 'A plain "Not found" page', ), array( 'show_if' => 'private_mode', 'help' => '"Not found" doesn\'t reveal that this is a WordPress site. You can still log in at ' . esc_html( wp_login_url() ) . '.', ) ); CFSP_UI::notice( 'Only turn this on when Static site address (Export) is your public domain, not this WordPress address.', 'warn', array( 'show_if' => 'private_mode' ) ); CFSP_UI::card_end(); CFSP_UI::card_start( 'Remove WordPress traces', 'Make it less obvious that the site is built with WordPress.' ); CFSP_UI::toggle( 'hide_generator', 'Remove generator meta tag', array( 'help' => 'Removes <meta name="generator" content="WordPress …"> and plugin generator tags.' ) ); CFSP_UI::toggle( 'hide_wp_links', 'Remove WordPress API links', array( 'help' => 'REST API, oEmbed, RSD (EditURI), wlwmanifest, pingback and shortlink tags. None of them work on a static site.' ) ); CFSP_UI::toggle( 'hide_ver', 'Remove version query strings', array( 'help' => 'Strips ?ver=6.x from CSS and JS URLs, which reveals WordPress and plugin versions.', 'warn' => 'Browsers and Cloudflare use ?ver= to fetch new CSS and JS after an update. Without it, visitors can see an old cached design after theme or plugin updates. Best left off.', ) ); CFSP_UI::card_end();