Linux 软件免费装
Banner图

Hiperlink Security

开发者 hiperlinkdigital
更新时间 2026年11月27日 04:51
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security 2fa content security policy security headers hardening

下载

1.1.16 1.1.18 1.1.19 1.1.17 1.1.20 1.1.21 1.1.22 1.1.23 1.1.24

详情介绍:

Hiperlink Security is a lightweight WordPress security plugin with two-factor authentication (2FA), hardening, security headers and a security checklist, made of modules you can switch on and off under Settings > Security. It does not call any outside service, does not load anything from other sites and sets no cookies. Why Hiperlink Security Works with: WooCommerce (two-factor login and the login limit on My account and checkout), Contact Form 7, WPForms, Elementor Pro and Fluent Forms, Polylang, page caches such as Hiperlink Cache, multisite, and next to Wordfence or Solid Security (tested with all modules on). Hardening module Stop user enumeration Turn off pingbacks and trackbacks Hide software versions Optional Custom login address module Bots try passwords at wp-login.php on every WordPress site. With your own address they find no login form: wp-login.php and wp-admin show visitors your site's missing page. Two-factor login module Two-factor authentication (2FA) for WordPress logins with an authenticator app, made entirely on your site: no SMS, no outside service, no account anywhere. Security headers module Adds the HTTP security headers that scanners look for, with defaults that do not break WordPress, and rolls out a Content Security Policy the safe way: first in Report-Only mode with CSP reports collected on your own site, then enforced. Content Security Policy in four steps:
  1. Scan the home page, the newest post and page and the shop page, and build the policy from 'self' plus the outside scripts, styles, fonts, images, frames, media and form targets they load (Google Fonts and Analytics included).
  2. Report-Only: browsers report what the policy would block, without blocking anything.
  3. Allow: blocked sources are listed by directive with a count, the last time and the page. Allow trusted ones in one click, or ignore them.
  4. Enforce: one click and a confirmation send the real Content-Security-Policy header. You can go back at any time.
Site check module A WordPress security checklist with a score out of 100: 29 checks run from inside your site, and each item that needs work gets one plain sentence on fixing it. When another module can fix an item, the result names the module. HTTPS and security headers WordPress hardening audit Email security: SPF and DMARC Leftovers of a break-in A check that cannot run shows Not checked and does not count. The score averages Security, Hardening and Email, plus Leftovers when something is found; problems attackers use more often count more. The check runs only when you press Check now: it asks your own site for a few pages and reads your domain's DNS records. Activity log module A WordPress activity log (audit log) that stays small: Security alerts module Emails about what an attacker does after getting in: One email per page load, at most 20 an hour, sent through WordPress. Comments off module For sites that do not use comments. It replaces a separate "disable comments" plugin: Form antispam module Stops spam bots without a CAPTCHA, a cookie or an outside service, and without slowing visitors down: nothing runs in the browser. Hide footprints module Scanners such as WPScan find plugins by their readme files, folders and versions, then try known holes. This makes that harder; keep updating. Nothing is hidden from administrators; turning it off undoes everything. The plugin is made by Hiperlink Digital, a web agency from Croatia that builds, maintains and protects websites. We run the same code on our own site.

安装:

  1. Install the plugin from Plugins > Add New, or upload the hiperlink-security folder to /wp-content/plugins/.
  2. Activate it. Hardening and Site check work straight away with safe defaults.
  3. Review the modules under Settings > Security, and turn on Security headers when you are ready to test the headers and the Content Security Policy.

屏幕截图:

  • Each module can be switched on or off on its own.
  • Hardening hides login names and software versions and turns off pingbacks.
  • Security headers shows what your home page sends and which headers to add.

常见问题:

Does it slow down the site?

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".

Is it free?

Yes. Every module described here is in this plugin, with no locked features and no upsell notices.

How do I add two-factor authentication to WordPress?

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.

How do I stop user enumeration in WordPress?

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.

How do I add security headers in WordPress?

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.

My theme links to author pages.

In Settings > Security > Hardening, turn off "Hide user names". Author archives then work as before.

Does it replace a firewall or malware scanner?

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.

Can it hide which plugins my site uses?

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.

Is Site check a vulnerability scanner?

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.

How is Site check different from Site Health?

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.

Some checks say "Not checked".

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.

Will a Content Security Policy break my site?

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.

What is Content-Security-Policy-Report-Only?

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.

Where do the CSP reports go?

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.

Which pages get the security headers?

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.

Why does script-src have 'unsafe-inline'?

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.

A security header is missing or different.

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.

Should I turn on HSTS?

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.

Does it work with WooCommerce?

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.

Does the login limit work behind Cloudflare or another proxy?

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.

What stops working with "Password logins only on the login page"?

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.

Will Form antispam block real visitors?

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.

How do I protect another form with Form antispam?

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.

Does Comments off delete my comments?

No. They stay in the database, out of sight. Switch the module off and they are back where they were.

Does Comments off remove WooCommerce product reviews?

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.

I lost my phone and cannot log in.

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.

Who gets the security alerts?

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.

Is the two-factor secret stored safely?

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.

Does two-factor login work with apps and the REST API?

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.

Does it work on multisite?

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.

Does it work with page caches and CDNs?

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.

Can I use it together with Wordfence or Solid Security?

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.

The status check shows two Permissions-Policy headers.

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.

Does it contact any outside service?

No. Requests go only to your own site, DNS lookups only to your own domain, and settings are stored as options in your database.

How do I change the WordPress login URL?

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.

I forgot my login address.

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.

更新日志:

1.1.24 1.1.23 1.1.22 1.1.21 1.1.20 1.1.19 1.1.18 1.1.17 1.1.16 1.1.15 1.1.14 1.1.13 1.1.12 1.1.11 1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0