Market Cap: $2.923T 0.91%
Volume(24h): $57.5947B 39.28%
Fear & Greed Index:

70 - Greed

  • Market Cap: $2.923T 0.91%
  • Volume(24h): $57.5947B 39.28%
  • Fear & Greed Index:
  • Market Cap: $2.923T 0.91%
Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos
Top Cryptospedia

Select Language

Select Language

Select Currency

Cryptos
Topics
Cryptospedia
News
CryptosTopics
Videos

How to configure IP whitelist for Bybit API access?

Bybit严格要求API密钥绑定IPv4白名单(不支持IPv6),单个密钥最多配置20个独立IP或CIDR地址;空列表或0.0.0.0/0将导致访问拒绝或密钥自动停用。(155字符)

Jun 30, 2026 at 04:39 am

Bybit API IP Whitelist Configuration Overview

1. Bybit requires strict network-level authorization for all API keys used in production environments. Each API key must be associated with a defined set of IPv4 addresses to restrict request origin points.

2. The IP whitelist is enforced at the exchange’s gateway layer before any authentication or permission checks occur. Requests from non-whitelisted IPs receive HTTP 403 Forbidden responses immediately.

3. Bybit does not support IPv6 whitelisting; only IPv4 addresses or CIDR notation (e.g., 203.0.113.42/32 or 192.0.2.0/24) are accepted during configuration.

4. A single API key can hold up to 20 distinct IPv4 entries, including individual addresses and subnet ranges, but overlapping CIDR blocks are rejected upon submission.

5. Changes to the IP whitelist take effect within 30 seconds without requiring key regeneration or service restarts.

Step-by-Step Whitelist Setup via Bybit Web Interface

1. Log into your Bybit account using official domain www.bybit.com, verify SSL certificate issued to Bybit Limited, and ensure two-factor authentication is active.

2. Navigate to Account Settings → Security → API Management and locate the target API key entry.

3. Click the pencil icon next to the key to open editing mode, then expand the “IP Whitelist” section.

4. Enter one or more IPv4 addresses or CIDR blocks separated by line breaks—no commas or semicolons allowed.

5. Confirm changes using both email verification and Google Authenticator code; failure in either step reverts the entire update.

Whitelist Validation and Troubleshooting

1. After saving, initiate a test call to /v5/account/info using curl or Postman with correct headers and signature.

2. If response contains retCode: 10004, it indicates the originating IP is not on the approved list—even if credentials are valid.

3. Use ip138.com or curl ifconfig.me to confirm the public IP address of the machine hosting your trading bot or script.

4. When deploying on cloud infrastructure, retrieve the Elastic IP or NAT Gateway address—not the private VPC address—as only public-facing IPs are evaluated.

5. Avoid using dynamic residential IPs unless paired with a reliable DDNS service that updates the whitelist automatically through Bybit’s API.

Security Implications of Misconfigured Whitelists

1. Leaving the whitelist empty disables all access regardless of key validity, effectively locking out legitimate traffic.

2. Entering 0.0.0.0/0 or similar broad masks violates Bybit’s security policy and results in immediate key deactivation by automated systems.

3. Reusing the same API key across multiple servers without updating the whitelist exposes the credential to lateral movement if one host is compromised.

4. Failure to rotate IPs after infrastructure migration leads to persistent 403 errors even when credentials remain intact and permissions unchanged.

5. Storing whitelisted IPs in version-controlled configuration files without encryption increases risk of accidental exposure during code audits or repository leaks.

Frequently Asked Questions

Q1: Can I use localhost or 127.0.0.1 in Bybit’s IP whitelist?Bybit rejects loopback addresses entirely. Local development must route through a publicly routable IP or use Bybit’s testnet environment where whitelisting is disabled.

Q2: Does Bybit allow wildcard domains or hostname-based whitelisting?No. Only numeric IPv4 addresses and CIDR blocks are accepted. DNS resolution is not performed during validation.

Q3: What happens if my server’s public IP changes while the whitelist remains static?All API requests from the new IP will fail with error code 10004 until the whitelist is manually updated with the current address.

Q4: Is there a way to programmatically update the IP whitelist using Bybit’s REST API?Bybit does not expose an endpoint for modifying API key settings. Whitelist edits require interactive authentication via the web interface or mobile app.

Disclaimer:info@kdj.com

The information provided is not trading advice. kdj.com does not assume any responsibility for any investments made based on the information provided in this article. Cryptocurrencies are highly volatile and it is highly recommended that you invest with caution after thorough research!

If you believe that the content used on this website infringes your copyright, please contact us immediately (info@kdj.com) and we will delete it promptly.

Related knowledge

How to Transfer USDT From Bitget Spot to Futures to Prepare for Trading?

How to Transfer USDT From Bitget Spot to Futures to Prepare for Trading?

Oct 03,2026 at 01:00am

Understanding Bitget Account Structure1. Bitget separates user assets into distinct wallets: Spot Wallet, Futures Wallet, and Funding Wallet. 2. The S...

How to Set a Bitget Futures Take-Profit Order Before Opening a Leveraged Position?

How to Set a Bitget Futures Take-Profit Order Before Opening a Leveraged Position?

Oct 05,2026 at 07:19am

Accessing the Futures Trading Interface1. Log in to your Bitget account via the official web platform or mobile application. 2. Navigate to the Deriva...

How to Use Bitget Spot Grid Trading to Buy and Sell Within a Defined Price Range?

How to Use Bitget Spot Grid Trading to Buy and Sell Within a Defined Price Range?

Oct 02,2026 at 03:19am

Understanding Spot Grid Trading Mechanics1. Spot grid trading operates by placing a series of limit buy and sell orders at predefined price intervals ...

How to Check Whether a MEXC Futures Order Was Executed at the Trigger Price?

How to Check Whether a MEXC Futures Order Was Executed at the Trigger Price?

Oct 02,2026 at 01:20pm

Understanding Trigger Price Execution in MEXC Futures1. MEXC Futures supports conditional orders including stop-market, stop-limit, and trailing-stop ...

How to Transfer USDT From MEXC to Binance Without Paying Unnecessary Network Fees?

How to Transfer USDT From MEXC to Binance Without Paying Unnecessary Network Fees?

Oct 03,2026 at 05:40pm

Understanding USDT Network Compatibility1. USDT exists across multiple blockchains including Ethereum (ERC-20), Tron (TRC-20), BNB Smart Chain (BEP-20...

How to Place a MEXC Futures Close-Limit Order at a Specific Exit Price?

How to Place a MEXC Futures Close-Limit Order at a Specific Exit Price?

Oct 02,2026 at 05:40am

Understanding Close-Limit Orders on MEXC Futures1. A close-limit order is a type of conditional order used exclusively to exit an existing position at...

How to Transfer USDT From Bitget Spot to Futures to Prepare for Trading?

How to Transfer USDT From Bitget Spot to Futures to Prepare for Trading?

Oct 03,2026 at 01:00am

Understanding Bitget Account Structure1. Bitget separates user assets into distinct wallets: Spot Wallet, Futures Wallet, and Funding Wallet. 2. The S...

How to Set a Bitget Futures Take-Profit Order Before Opening a Leveraged Position?

How to Set a Bitget Futures Take-Profit Order Before Opening a Leveraged Position?

Oct 05,2026 at 07:19am

Accessing the Futures Trading Interface1. Log in to your Bitget account via the official web platform or mobile application. 2. Navigate to the Deriva...

How to Use Bitget Spot Grid Trading to Buy and Sell Within a Defined Price Range?

How to Use Bitget Spot Grid Trading to Buy and Sell Within a Defined Price Range?

Oct 02,2026 at 03:19am

Understanding Spot Grid Trading Mechanics1. Spot grid trading operates by placing a series of limit buy and sell orders at predefined price intervals ...

How to Check Whether a MEXC Futures Order Was Executed at the Trigger Price?

How to Check Whether a MEXC Futures Order Was Executed at the Trigger Price?

Oct 02,2026 at 01:20pm

Understanding Trigger Price Execution in MEXC Futures1. MEXC Futures supports conditional orders including stop-market, stop-limit, and trailing-stop ...

How to Transfer USDT From MEXC to Binance Without Paying Unnecessary Network Fees?

How to Transfer USDT From MEXC to Binance Without Paying Unnecessary Network Fees?

Oct 03,2026 at 05:40pm

Understanding USDT Network Compatibility1. USDT exists across multiple blockchains including Ethereum (ERC-20), Tron (TRC-20), BNB Smart Chain (BEP-20...

How to Place a MEXC Futures Close-Limit Order at a Specific Exit Price?

How to Place a MEXC Futures Close-Limit Order at a Specific Exit Price?

Oct 02,2026 at 05:40am

Understanding Close-Limit Orders on MEXC Futures1. A close-limit order is a type of conditional order used exclusively to exit an existing position at...

See all articles

User not found or password invalid

Your input is correct