[WordPress] 外掛分享: ForgePress Country Choice Rules for Gravity Forms

首頁外掛目錄 › ForgePress Country Choice Rules for Gravity Forms
全新外掛
安裝啟用
尚無評分
208 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v1.3.2 上架:2025-09-15

內容簡介

總結:
ForgePress Country Choice Rules for Gravity Forms可以讓你定義規則,在選定的國家中刪除某些選項(對應收音機、下拉選單、復選框選項),這是在伺服器端進行的,你還可以設置一個備用選擇,以在選項被刪除時自動選擇。

問題:

1. ForgePress Country Choice Rules for Gravity Forms可以用來做什麼?
2. 它的主要亮點是什麼?
3. 外掛如何處理VPN/Proxy?
4. 外掛使用了哪些第三方服務?檢測訪客國家和VPN/Proxy的使用是如何進行的?
5. ForgePress Country Choice Rules for Gravity Forms與Gravity Forms是否有關聯?
6. 如何建立規則?
7. 外掛如何在運行時執行?
8. VPN/Proxy的處理方式有哪些選項?

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ForgePress Country Choice Rules for Gravity Forms」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

ForgePress Country Choice Rules for Gravity Forms lets you define rules that remove specific choices (radio, dropdown, checkbox options) for visitors from selected countries. This happens server-side (secure), and you can configure a fallback choice to auto-select when an option is removed.
Highlights

Per-country choice blocking for radio, dropdown, and checkbox fields
Multi-form / multi-field rules (simple repeater UI)
Fallback choice (optional) if a blocked option is removed
Server-side filtering (not just CSS/JS hiding)
Optional VPN/Proxy handling:

Do nothing
Show warning message
Force a default country for rule evaluation
Block submission with a custom message

Cloudflare aware (CF-IPCountry) with 1h caching for IP lookups
Lightweight and admin-friendly

This plugin is not affiliated with or endorsed by Gravity Forms. It simply integrates with Gravity Forms via its standard hooks.

How it works (in short)

You add rules: Form ID + Field ID + Choice Text/Value + Countries (+ optional fallback).
On render/validation, the plugin detects the visitor country.
If a rule matches, the corresponding choice(s) are removed and an optional fallback is selected.

External Services & Data Flow (Guideline 6)
This plugin may use third-party services to determine the visitor’s country and (optionally) detect VPN/Proxy usage.

Cloudflare (if your site is on Cloudflare):
We read the CF-IPCountry header provided by Cloudflare. No outbound request is made by this plugin.
Privacy: https://www.cloudflare.com/privacypolicy/

ipapi.co (free) (default geolocation when Cloudflare is not present):
The plugin requests https://ipapi.co/{IP}/json/ to map visitor IP → country.
Data sent: visitor IP only.
Retention: result cached in WordPress for 1 hour.
Privacy: https://ipapi.co/privacy/

Optional VPN/Proxy checks (opt-in by the site admin):

ipregistry.co (if an API key is configured):
Data sent: visitor IP to check proxy/VPN indicators.
Privacy: https://ipregistry.co/privacy
ipapi.com PRO (if an API key is configured):
Data sent: visitor IP with security=1 to check VPN/Proxy/Tor.
Privacy: https://ipapi.com/privacy

No form entries or personal form fields are sent to these providers. Admins can disable optional VPN checks entirely.
GDPR/Privacy: Only an IP address may be sent to the selected provider(s) to derive country/VPN status. You should disclose this in your site privacy policy if enabled.
Notes on Naming / Trademarks
This is an independent plugin for Gravity Forms and is not affiliated with or endorsed by Gravity Forms. The name and readme make this relationship clear.
Features in Detail

Rule builder UI under Settings → ForgePress Country Choice Rules

Add multiple rows; each row targets a Form ID + Field ID, the choice label/value, and a list of countries (ISO-2).
Optionally set a Fallback choice to auto-select if the blocked option is removed.

Runtime enforcement

Choices are removed on gform_pre_render and validated on gform_validation.
If a blocked value is posted manually, validation fails with a clear message.

VPN/Proxy handling

Admin can choose: Do nothing, Show warning, Force country, or Block submission.
Works without an API key (heuristics). With a key (ipregistry/ipapi PRO), detection is more accurate.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon