| 开发者 | hiperlinkdigital |
|---|---|
| 更新时间 | 2026年11月27日 04:51 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/?author=1, /author/name/) return 404 for visitors who are not logged in./wp-json/wp/v2/users) are removed for visitors who are not logged in. The block editor keeps working.X-Powered-By header with the PHP version, the WordPress generator tag and the WordPress version in ?ver= of scripts, styles and script modules (a hash that still changes with each update).system.multicall), and only administrators keep application passwords for the REST API. Off by default, because the WordPress mobile app, desktop blog editors and some Jetpack features log in through XML-RPC.DISALLOW_FILE_EDIT does.pll_language cookie, for sites that always keep the language in the URL.define( 'HIPERLINK_SECURITY_LOGIN_URL_OFF', true ); in wp-config.php or wp hiperlink-security login-url off switches it off.wp hiperlink-security 2fa reset <user>.frame-ancestors follows it.includeSubDomains and preload are never on by default.'self' plus the outside scripts, styles, fonts, images, frames, media and form targets they load (Google Fonts and Analytics included).Content-Security-Policy header. You can go back at any time.?author=1.wp-comments-post.php, the REST API routes, XML-RPC methods and comment feeds..htaccess (Apache, LiteSpeed); for nginx the tab shows them. A check tests the result.hiperlink-security folder to /wp-content/plugins/.No. With the default modules, visitors' pages make no extra database queries and load no script or style from the plugin. Modules only add a few filters, a module that is switched off is not loaded at all, and Site check runs only when you press "Check now".
Yes. Every module described here is in this plugin, with no locked features and no upsell notices.
Turn on Two-factor login under Settings > Security. Each user then opens their profile, scans the QR code with an authenticator app such as Google Authenticator, Microsoft Authenticator or 2FAS, confirms with a code and keeps the backup codes. To make it mandatory for administrators, turn on "Require for administrators" and choose a grace period.
The Hardening module does it as soon as you activate the plugin: author archives such as /?author=1 answer 404, the REST API users routes are hidden from visitors, and a failed login or password reset gives the same answer for every user name. Site check shows whether your site still leaks user names.
Turn on Security headers under Settings > Security. The basic headers (nosniff, X-Frame-Options, Referrer-Policy and Permissions-Policy) are one switch, HSTS is a separate choice, and the Content Security Policy is built from a scan of your pages and tested in Report-Only mode first. The status check shows what your home page really sends.
In Settings > Security > Hardening, turn off "Hide user names". Author archives then work as before.
No. It removes information that helps attackers, sends security headers and checks your configuration, but it does not block traffic or scan files. Keep WordPress, themes and plugins up to date and keep backups.
Mostly. Turn on Hide footprints: readme files, plugin folders and version numbers stop giving plugins away, and Hiperlink plugins switch to quiet mode, with no name of ours in pages, headers, cookies, addresses or the REST API. Plugins that load scripts or styles still show their folder names in the page source, so a careful look can find them. It reduces automated targeting by bots that look for one vulnerable plugin; it does not make an outdated plugin safe, so keep updating. Quiet mode renames cookies once, so a cookie banner shows again and a login waiting for its two-factor code starts over. On nginx, add the lines the tab shows to the server block; the check on the tab tells you whether they work.
No. It does not look for malware or for known vulnerabilities in your plugins and themes. It checks settings that make attacks easier: missing HTTPS and security headers, pending updates, an old PHP version, user enumeration, XML-RPC, debug settings, downloadable backups and email records. The Updates check tells you when an update is waiting, and updates are how most vulnerabilities get fixed.
Site Health in WordPress looks at whether the server can run WordPress well. Site check is a security audit: the headers your pages send, what visitors can learn about your users and software, and whether your domain is protected against forged email.
Site check loads a few pages of your own site from the server. Some hosts, firewalls or local setups block those requests, and the check then says it could not run instead of guessing. SPF and DMARC are not checked for sites on an IP address or a local name. A staging copy can read the main domain's records with the hiperlink_security_site_check_domain filter.
Not while it is in Report-Only mode: browsers only report what they would block. Enforce the policy when no new reports arrive for a week or two, and go back to Report-Only if something stops working.
The same policy under a different header name. Browsers check every script, style, image, font and frame against it and send a CSP report for each violation, but they load everything as usual. It is the safe way to test a policy on a live site.
To /wp-json/hiperlink-security/v1/csp-report on your own site (in quiet mode an address with your site's own names), set as the policy's report-uri, which Chrome, Edge, Firefox and Safari all use. Nothing is sent to us or to anyone else.
They are grouped by directive and blocked site with a count and the last time. No IP addresses, user agents, query strings or full URLs are stored. Only reports for your domain are accepted, at most 200 groups are kept and the endpoint takes at most 60 requests a minute.
Public pages. Admin screens, the login page and the REST API keep WordPress's own. The Content Security Policy goes only to visitors who are not logged in, because the admin bar and editors need more.
Most WordPress themes and plugins print small scripts inside the page, so the scan adds 'unsafe-inline' when it finds them. The policy still blocks scripts from sites it does not list, object and embed content, injected base tags and forms that send data to other sites.
Something between WordPress and the visitor changes the response: a page cache that serves saved HTML without PHP, a CDN or the web server that sets its own security headers, or another security plugin. Turn the header off in one of the two places so it is sent once. Site check reads the home page as a visitor without cookies, so check again after clearing the cache.
Only when the whole site works over HTTPS with a valid certificate. Browsers that see HSTS refuse plain HTTP for your domain until max-age runs out, and you cannot take that back. Start with 5 minutes or a day, then raise it to a year. Turn on includeSubDomains only when every subdomain works over HTTPS too. Behind a proxy that talks to the server over plain HTTP, set HSTS in the proxy instead.
Yes. The header scan includes the shop page, and the Permissions-Policy leaves payment allowed for Apple Pay and Google Pay. Payment gateways load scripts and frames on the checkout page, so place a test order while the policy is in Report-Only mode and allow the gateway's sources. Two-factor login and the login limit also cover the WooCommerce My account and checkout login: after the password, the code is asked on the WordPress login page and the customer then returns to My account. With Hide user names on, the WooCommerce login gives the same answer for every user name and email address.
Yes. Behind Cloudflare the visitor's address is read from the CF-Connecting-IP header, but only when the request really comes from one of Cloudflare's addresses (the list is built in, and a newer one can be pasted on the Hardening tab), so nobody can choose their address by sending the header. Behind another reverse proxy or load balancer, list its addresses under Trusted proxies and choose the header it sets (X-Forwarded-For or X-Real-IP). The tab says which applies, and warns when all visitors seem to share one address. The activity log uses the same address. Developers can also set it with the hiperlink_security_login_ip filter.
The WordPress mobile app, desktop blog editors and services that publish through XML-RPC stop working, and so may Jetpack features that use it, as do integrations that use a non-administrator's application password. The block editor, the login form and administrators' application passwords keep working. Pingbacks are a separate option.
Only someone who sends a form within a few seconds of opening the page, or a page that has been open, or cached, for more than 30 days. The message asks them to wait a moment or reload the page and send again. Visitors with a password manager are safe: the hidden field has no name a browser fills in. Page caches are fine too: a cached page carries an older time, which only makes the minimum easier to meet.
Print the fields inside the form with echo apply_filters( 'hiperlink_security_antispam_fields', '', 'my-form' ); and refuse the submission when apply_filters( 'hiperlink_security_antispam_is_spam', false, 'my-form' ) returns true.
No. They stay in the database, out of sight. Switch the module off and they are back where they were.
No. Reviews are comments too, but they follow WooCommerce's own setting (WooCommerce > Settings > Products > Enable product reviews), so a shop can close blog comments and keep its reviews. Turn reviews off there if you do not want them either.
Use one of your backup codes. Without them, ask another administrator to reset two-factor login in your profile, or ask your host to run wp hiperlink-security 2fa reset your-user-name. As a last resort, rename the plugin folder over FTP, log in and rename it back.
The administration email address from Settings > General, or up to five addresses you enter on the Security alerts tab. The email about a login from a new network goes only to the administrator who logged in; the first login after you turn the module on is remembered without an email. The plugin keeps only a keyed hash of the last ten networks per administrator, never the addresses. A "Send a test email" button checks that the emails arrive.
It is stored encrypted, with a key made from the secret keys (salts) in your wp-config.php, so a copy of the database alone does not give the codes away, and REST APIs that list user meta leave it out. If you change those salts, for example after a break-in, the stored secrets can no longer be read: the codes from the app stop working, backup codes still work, and each user sets two-factor login up again in their profile.
Apps that log in with your WordPress password (through XML-RPC) are refused once two-factor login is on. Create an application password in your profile and use it in the app instead; it works with the REST API and XML-RPC.
Yes, with network activation or on single sites. Each site has its own modules and settings under its own Settings > Security; there is no network-wide settings screen, so set up each site where you need it (the safe defaults apply until you do). Only super admins can change the settings, because some of them change files shared by the whole network and how everyone logs in. Two-factor login is set up once per user on a site where the module is on, and then asks for the code on every site of the network, because the login cookie works on all of them. Deleting the plugin removes its data from every site.
Yes. The form antispam fields work on cached pages. Security headers reach cached pages when the page cache keeps the headers WordPress sent (Hiperlink Cache does); otherwise set them in the server or CDN. The status check requests your home page as a visitor and once more past the page cache, so it tells you when only the cached copy lacks a header (clear the cache) and when a firewall or CDN challenge answers instead of your site.
Yes. We tested Hiperlink Security with all modules on next to Wordfence, Solid Security, WooCommerce, Contact Form 7 and WPForms: no errors and no doubled headers. Use one plugin for each job: turn on two-factor login, the login limit and security headers in only one of them, or people are asked for two codes and counted twice. Those plugins can also block XML-RPC, the REST API or application passwords on their own. With all of them active, give PHP at least 256 MB of memory (WP_MEMORY_LIMIT); with 128 MB, logins ran out of memory even without Hiperlink Security.
Another plugin adds its own; WPForms does, for CAPTCHAs. Browsers combine all Permissions-Policy headers into one policy, so this is fine and the check shows it as OK.
No. Requests go only to your own site, DNS lookups only to your own domain, and settings are stored as options in your database.
Turn on Custom login address under Settings > Security and save an address, for example example.com/my-door/. The login page is then there, and wp-login.php and wp-admin show your missing page to visitors who are not logged in. Bookmark the new address. Links to wp-login.php in your theme, such as a "Log in" link or the one in the comment form, lead to the missing page too.
Add define( 'HIPERLINK_SECURITY_LOGIN_URL_OFF', true ); to wp-config.php, above "That's all, stop editing!", and log in at wp-login.php; remove the line afterwards. With WP-CLI, wp hiperlink-security login-url show prints the address and wp hiperlink-security login-url off switches the module off.
define( 'HIPERLINK_QUIET', true ); in wp-config.php): the CSP report address, the antispam field names and the two-factor login step use names of the site's own, and the report route is left out of the /wp-json/ index. Forms from pages cached before the switch still send.wp hiperlink-security login-url off.