SMS pumping fraud: how it works and how to protect your OTP flow

Written and reviewed by the DiOTP team Published 30 November 2026Last updated 30 November 2026

9 min read

SMS pumping, also called artificially inflated traffic, is fraud in which bots trigger thousands of OTP messages from your sign-up or login form, not to break into accounts but to make you pay for the texts. Every code you send costs money, and the attacker either profits from the traffic or simply drains your balance. This guide explains how the attack works, how to recognise it early, and the defences that stop it without getting in the way of real users.

How an SMS pumping attack works

An OTP form is an open door: anyone can type a phone number and make your server send a message. That is the point of it, and also its weakness. In a pumping attack a script fills in your form over and over, with long lists of numbers, often in sequence. Each request costs you one message.

In the classic version, the numbers belong to ranges controlled by the attacker or a partner who earns a share of the fee for every message that reaches them. In another version the goal is only damage: burning through a competitor's balance or getting their sender flagged for unusual traffic. Either way, the attacker never needs a single code to be verified. The cost is in the sending.

The tell-tale sign of pumping is many codes sent and almost none verified. Real users who ask for a code nearly always type it in.

Why OTP forms are the target

  • They are public: sign-up and login pages have to work for people who do not have an account yet.
  • They send a paid message on every request, with no purchase or payment step in front of it.
  • They are easy to automate: one form field and one button.
  • The damage lands on your SMS bill, which many teams only check at the end of the month.

Signs of SMS pumping fraud

  • A sudden jump in OTP sends that does not match a jump in sign-ups or orders.
  • The share of codes verified falls sharply, from most of them to very few.
  • Many requests for numbers in sequence, or numbers that share a long prefix.
  • Requests arriving at a steady machine pace, or at hours when your real users are asleep.
  • Many sends from the same IP addresses or devices, each to a different number.

Watch the ratio of verified codes to sent codes every day. It is the single most useful number for spotting pumping, and you can read both figures from your message log or webhooks.

SMS pumping protection, defence 1: limits on every number

The first layer caps how many codes one phone number can receive. DiOTP applies these on every send, before anything is charged:

LimitDefaultError code
Resend to the same numberOnce every 30 secondsresend_cooldown
Codes per number per hour3phone_hourly_limit
Codes per number per day10phone_daily_limit
Sends per API key per minute30api_key_minute_limit
Wrong codes per request5too_many_attempts

Per-number limits stop an attacker from hammering one number, and protect real people from being flooded. On their own they do not stop an attack that uses a different number every time, which is why the next layers matter.

Defence 2: limits on whoever is asking

Limit OTP requests per IP address, per device and per session in your own application, before you call the send API. A real person rarely asks for codes to more than two or three numbers from one device in a day. A script asks for hundreds.

  • Put a bot check, such as an invisible challenge, in front of the "Send code" button on public forms.
  • Rate-limit the endpoint in your app that triggers the OTP, by IP and by session.
  • Ask for the number only after a real interaction, such as starting checkout, rather than on a bare page any script can call.

Defence 3: only send where you do business

If your customers are in India, there is no reason to send OTPs anywhere else. Reject numbers outside the country codes you serve before calling the API. Validate the number's length and format too: Indian mobile numbers are ten digits, so anything else can be refused without spending a message.

Defence 4: make retries safe, and watch the ratio

Send an Idempotency-Key header with every send request. If your server retries after a timeout, the retry returns the first result instead of sending a second paid message. Then set an alert on the verified-to-sent ratio: when it drops well below its normal level, slow down or pause OTP sends from the affected form while you investigate.

You can receive every send and verification as an event through webhooks, which makes the ratio easy to track in your own monitoring.

What DiOTP does for you

DiOTP generates and checks every code, enforces the per-number and per-key limits above on every request, and returns a clear error code when a limit is hit, so nothing is sent and nothing is charged. Limits count every send to a number from any of your keys. What we cannot see is who is behind a request in your app, so the IP, device and bot checks in Defence 2 belong in your application. Together, the two layers make pumping unprofitable.

OTP security best practices Send endpoint and limits

Rate limits reference How DiOTP secures OTPs

Questions people ask

Fraud in which bots trigger large numbers of OTP messages from a public form so that the business pays for the texts. The attacker profits from the traffic or simply drains the balance; no code ever needs to be verified.

Start building your customer messaging with DiOTP

Free test credits on sign-up, API keys in a minute, and a team that picks up the phone.