Title: Only Self Pings
Author: ulfben
Published: <strong>4 Tháng 5, 2012</strong>
Last modified: 13 Tháng 10, 2026

---

Tìm kiếm plugin

![](https://s.w.org/plugins/geopattern-icon/only-self-pings.svg)

# Only Self Pings

 Bởi [ulfben](https://profiles.wordpress.org/ulfben/)

[Tải về](https://downloads.wordpress.org/plugin/only-self-pings.1.1.0.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/only-self-pings/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/only-self-pings/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/only-self-pings/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/only-self-pings/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/only-self-pings/)

## Mô tả

WordPress can send pingbacks to sites you link to. While self-pings can help connect
related articles on your own site, you may not want WordPress notifying external
sites whenever you publish a link. Only Self Pings restricts outgoing pingbacks 
to your own site or to explicitly approved URLs.

With no saved settings, it allows your current public site URL and URLs beneath 
it. You can replace this list with the URLs you want to allow under Settings > Only
Self Pings.

 * Small plugin with no external service, JavaScript, tracking or front-end assets.
 * Works with links processed by WordPress’s normal pingback system, independently
   of the editor used to write a post.
 * Retains settings from version 1.0.
 * Supports per-site settings when network activated on Multisite.

The plugin does not enable pingbacks. Outgoing notifications must be enabled in 
WordPress, and the receiving article must accept pingbacks.

## Cài đặt

 1. Upload the only-self-pings folder to /wp-content/plugins/, or upload the plugin
    ZIP through Plugins > Add New Plugin.
 2. Activate Only Self Pings.
 3. Open Settings > Only Self Pings and review the allowed URLs.
 4. If you want WordPress to send pingbacks, make sure “Attempt to notify any blogs
    linked to from the article” is enabled under Settings > Discussion.

Requires WordPress 6.8 or newer and PHP 8.2 or newer. Prefer a currently supported
PHP release provided by your host.

## Hỏi đáp

### How does the allowed URL list work?

Enter complete http:// or https:// URLs, separated by newlines or commas.

Protocol (HTTP/HTTPS), domain and port must match. The destination’s path must match
an allowed path or sit beneath it.

For example, https://example.com/blog allows https://example.com/blog and https://
example.com/blog/article. It does not allow https://example.com/blogger, https://
example.com.evil.test/blog or https://other.example.com/blog.

 * HTTP and HTTPS are separate: add both if you need both.
 * Domain names are case-insensitive; paths are case-sensitive. A final slash on
   an allowed URL is optional.
 * An omitted HTTPS port is equivalent to :443; an omitted HTTP port is equivalent
   to :80.

A root URL such as https://example.com/ allows every path on that origin. For a 
WordPress site installed under a subdirectory, keep that directory in the URL to
restrict pings to it.

Allowed entries must not contain credentials, query strings or fragments. A permitted
destination may have a query string or fragment; matching uses its origin and path.
Plain WordPress permalinks such as https://example.com/?p=123 work with a root URL
entry. International domain names should use their ASCII/Punycode form.

Relative URLs, unsupported schemes, malformed URLs, dot segments and ambiguous encoded
path separators are rejected. This plugin does not expand relative URLs; it filters
the destinations supplied by WordPress.

### What does an empty list mean?

Saving an empty list blocks all outgoing pingbacks handled by this plugin, including
self-pings. A missing or structurally damaged option defaults to your current public
site URL. Invalid entries within a saved list are ignored, not treated as permission
to ping any site.

### What changes when upgrading from 1.0?

Your saved list is retained, but URL matching is deliberately stricter. External
HTTPS URLs are no longer allowed automatically. Lookalike hostnames and partial 
path matches are blocked. HTTP and HTTPS are separate, and paths are case-sensitive.

Review your settings after upgrading, particularly if your site moved to HTTPS or
another domain. Saved URLs are not automatically rewritten. Old entries containing
query strings, fragments, credentials or ambiguous paths no longer allow pings; 
replace them with the intended origin/path rule. Saving the settings warns about
invalid entries and removes them.

### Does this make my site private or stop incoming pings?

No. It filters outgoing pingback target URLs in WordPress’s pre_ping hook. It does
not restrict incoming pingbacks, trackbacks, update services, visitor referrers,
search engines or HTTP requests made by other plugins.

Allowed pages can redirect or advertise a pingback endpoint on another host. WordPress
handles that discovery and delivery; this plugin does not enforce an HTTP firewall
over those later requests. Only allow sites you trust.

### Will this create internal backlinks on a password-protected site?

Not necessarily. The receiving pingback service normally needs to fetch and verify
the linking article. Authentication, disabled XML-RPC/pingbacks, hosting rules or
other plugins can prevent delivery. This plugin preserves eligible self-pings; it
does not implement an independent backlink index.

### What happens on Multisite?

The plugin can be activated per site or network-wide. Each site has its own allowed
URLs and Settings page. A site without saved settings defaults to its current public
site URL. There is no network-wide allowlist.

### What happens when I deactivate or delete the plugin?

Deactivation keeps the settings. Deleting the plugin removes its own OnlySelfPingsOpts
option, including per-site options on Multisite. It never edits or deletes WP-HideRefer
settings.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Only Self Pings” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ ulfben ](https://profiles.wordpress.org/ulfben/)

[Dịch “Only Self Pings” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/only-self-pings)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/only-self-pings/), check
out [SVN repository](https://plugins.svn.wordpress.org/only-self-pings/), hoặc theo
dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/only-self-pings/)
qua [RSS](https://plugins.trac.wordpress.org/log/only-self-pings/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.1.0

 * Modernized for WordPress 6.8+ and PHP 8.2+.
 * Fixed the pre_ping callback argument mismatch that could cause a fatal error.
 * Fixed external HTTPS URLs bypassing the allowlist.
 * Replaced raw URL prefix matching with exact scheme, host and port matching plus
   path boundaries.
 * Rejected malformed URLs, credentials and ambiguous paths instead of guessing 
   destinations.
 * Replaced broken activation/deactivation callbacks with lazy defaults and a guarded
   uninstall.php.
 * Fixed the old initialization/uninstall code targeting WP-HideRefer’s option instead
   of this plugin’s settings.
 * Preserved existing options, explicit empty lists and settings-page links.
 * Added validation feedback, capability checks, accessible field labeling and a
   standard WordPress text domain.
 * Added Multisite-aware cleanup on deletion.
 * Updated documentation to explain matching rules, migration and the limits of 
   pingback filtering.

#### 1.0

 * Public release.

## Meta

 *  Phiên bản **1.1.0**
 *  Cập nhật lần cuối **1 tháng trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 6.8 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.4**
 *  Phiên bản PHP ** 8.2 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/only-self-pings/)
 * Thẻ
 * [pingbacks](https://vi.wordpress.org/plugins/tags/pingbacks/)[privacy](https://vi.wordpress.org/plugins/tags/privacy/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/only-self-pings/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

[Your review](https://wordpress.org/support/plugin/only-self-pings/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/only-self-pings/reviews/)

## Những người đóng góp

 *   [ ulfben ](https://profiles.wordpress.org/ulfben/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/only-self-pings/)