-
bitcoin $87959.907984 USD
1.34% -
ethereum $2920.497338 USD
3.04% -
tether $0.999775 USD
0.00% -
xrp $2.237324 USD
8.12% -
bnb $860.243768 USD
0.90% -
solana $138.089498 USD
5.43% -
usd-coin $0.999807 USD
0.01% -
tron $0.272801 USD
-1.53% -
dogecoin $0.150904 USD
2.96% -
cardano $0.421635 USD
1.97% -
hyperliquid $32.152445 USD
2.23% -
bitcoin-cash $533.301069 USD
-1.94% -
chainlink $12.953417 USD
2.68% -
unus-sed-leo $9.535951 USD
0.73% -
zcash $521.483386 USD
-2.87%
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 switch between BTC and USDT markets on OKX?
Jun 28,2026 at 07:40am
Accessing the Trading Interface1. Log in to your OKX account via the official website or mobile application. Ensure two-factor authentication is enabl...
How to use isolated margin mode on Bybit?
Jun 28,2026 at 04:20pm
Understanding Isolated Margin Mode1. Isolated margin mode allocates a fixed amount of collateral exclusively to a single position, preventing cross-co...
How to enable security key login on Kraken account?
Jun 29,2026 at 05:39pm
Security Key Setup Process1. Log in to your Kraken account using your current credentials and navigate to the Security Settings section under Account ...
How to check liquidation price on Binance futures?
Jun 29,2026 at 09:00pm
Understanding Liquidation Price Calculation1. The liquidation price is the market price at which a leveraged position is automatically closed by the e...
How to use trailing stop order on Bybit futures?
Jun 29,2026 at 03:20am
Market Volatility Patterns1. Bitcoin price swings often exceed 5% within a single trading session during periods of high liquidity imbalance. 2. Altco...
How to set auto-deposit earning on Binance Earn?
Jun 29,2026 at 08:39am
Market Volatility Patterns1. Bitcoin’s price movements often reflect macroeconomic shifts, such as Federal Reserve interest rate decisions or inflatio...
How to switch between BTC and USDT markets on OKX?
Jun 28,2026 at 07:40am
Accessing the Trading Interface1. Log in to your OKX account via the official website or mobile application. Ensure two-factor authentication is enabl...
How to use isolated margin mode on Bybit?
Jun 28,2026 at 04:20pm
Understanding Isolated Margin Mode1. Isolated margin mode allocates a fixed amount of collateral exclusively to a single position, preventing cross-co...
How to enable security key login on Kraken account?
Jun 29,2026 at 05:39pm
Security Key Setup Process1. Log in to your Kraken account using your current credentials and navigate to the Security Settings section under Account ...
How to check liquidation price on Binance futures?
Jun 29,2026 at 09:00pm
Understanding Liquidation Price Calculation1. The liquidation price is the market price at which a leveraged position is automatically closed by the e...
How to use trailing stop order on Bybit futures?
Jun 29,2026 at 03:20am
Market Volatility Patterns1. Bitcoin price swings often exceed 5% within a single trading session during periods of high liquidity imbalance. 2. Altco...
How to set auto-deposit earning on Binance Earn?
Jun 29,2026 at 08:39am
Market Volatility Patterns1. Bitcoin’s price movements often reflect macroeconomic shifts, such as Federal Reserve interest rate decisions or inflatio...
See all articles














