-
bitcoin $64123.539858 USD
-0.10% -
ethereum $1905.460301 USD
0.57% -
tether $0.999163 USD
0.01% -
bnb $600.891882 USD
-0.36% -
usd-coin $0.999840 USD
-0.01% -
xrp $0.998612 USD
0.37% -
solana $76.631907 USD
1.23% -
tron $0.332774 USD
0.35% -
hyperliquid $58.075257 USD
-1.94% -
dogecoin $0.069848 USD
0.08% -
unus-sed-leo $9.229272 USD
-2.29% -
zcash $501.529258 USD
-1.42% -
monero $411.405270 USD
-1.26% -
chainlink $9.572227 USD
1.60% -
cardano $0.174904 USD
0.95%
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.
- Bitcoin, eCash Fork, and Airdrop Dynamics: A Deep Dive into Crypto's Latest Controversies
- 2026-05-03 12:55:01
- Consensus 2026 Miami: Web3, Blockchain, Cryptocurrency, NFTs, Metaverse, Conference, May 5th — Where Wall Street Meets the Digital Frontier
- 2026-05-02 12:45:01
- Fed Holds Rates Steady, Triggering Bitcoin Price Drop Amidst Geopolitical Tensions
- 2026-05-01 06:45:01
- Bitcoin Miners Electrify the Grid: Ohio Gas Plant Acquisition Powers Up a New Era for Digital Gold
- 2026-05-01 00:45:01
- MegaETH's MEGA Token Hits the Big Apple: Setting New Performance Benchmarks for Real-Time Blockchain
- 2026-05-01 00:55:01
- Solana's Slippery Slope: Price Prediction Points to Resistance Loss and Potential Further Drops
- 2026-05-01 06:45:01
Related knowledge
How to Start Futures Copy Trading on Binance? Complete Beginner Setup Guide
Aug 18,2026 at 08:19pm
Understanding Futures Copy Trading Mechanics1. Futures copy trading allows users to automatically replicate the open positions and trade executions of...
How to Place a Limit Order for XRP on OKX? Step-by-Step Spot Trading Guide
Aug 20,2026 at 01:00am
API Key Configuration and Security Setup1. Log into your OKX account and navigate to the API management section under Account Settings. 2. Click “Crea...
How to Set a Stop Loss for XRP on MEXC? Complete XRP Futures Risk Guide
Aug 20,2026 at 03:39am
Understanding Stop Loss Mechanics on MEXC1. MEXC supports both traditional stop-market and stop-limit orders for XRP perpetual futures contracts. 2. W...
How to Buy LINK on OKX? How to Exchange USDT for Chainlink
Aug 19,2026 at 05:59pm
Accessing the LINK Trading Market1. Log into your OKX account using verified credentials and ensure two-factor authentication is active. 2. Navigate t...
How to Trade XRP Futures on Binance? How to Manage an XRP Contract Position
Aug 19,2026 at 12:00am
Accessing XRP Futures Markets on Binance1. Log into your verified Binance account and navigate to the Futures section via the top navigation bar. 2. S...
How to Buy BNB on OKX? Complete BNB Spot Trading Tutorial
Aug 20,2026 at 06:19am
Market Volatility Patterns1. Bitcoin price swings often exceed 5% within a 24-hour window during high-liquidity events such as halving announcements o...
How to Start Futures Copy Trading on Binance? Complete Beginner Setup Guide
Aug 18,2026 at 08:19pm
Understanding Futures Copy Trading Mechanics1. Futures copy trading allows users to automatically replicate the open positions and trade executions of...
How to Place a Limit Order for XRP on OKX? Step-by-Step Spot Trading Guide
Aug 20,2026 at 01:00am
API Key Configuration and Security Setup1. Log into your OKX account and navigate to the API management section under Account Settings. 2. Click “Crea...
How to Set a Stop Loss for XRP on MEXC? Complete XRP Futures Risk Guide
Aug 20,2026 at 03:39am
Understanding Stop Loss Mechanics on MEXC1. MEXC supports both traditional stop-market and stop-limit orders for XRP perpetual futures contracts. 2. W...
How to Buy LINK on OKX? How to Exchange USDT for Chainlink
Aug 19,2026 at 05:59pm
Accessing the LINK Trading Market1. Log into your OKX account using verified credentials and ensure two-factor authentication is active. 2. Navigate t...
How to Trade XRP Futures on Binance? How to Manage an XRP Contract Position
Aug 19,2026 at 12:00am
Accessing XRP Futures Markets on Binance1. Log into your verified Binance account and navigate to the Futures section via the top navigation bar. 2. S...
How to Buy BNB on OKX? Complete BNB Spot Trading Tutorial
Aug 20,2026 at 06:19am
Market Volatility Patterns1. Bitcoin price swings often exceed 5% within a 24-hour window during high-liquidity events such as halving announcements o...
See all articles














