pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
14.62k stars 3.48k forks source link

WhatsApp Banning Account. Unofficial App #1872

Closed mithunkundu1983 closed 4 months ago

mithunkundu1983 commented 1 year ago

Is there an existing issue for this?

Describe the bug

Latest version is being banned by WhatsApp saying using unauthorised version of WhatsApp being used.

Expected behavior

Account should not be blocked for sending 20 messages.

Steps to Reproduce the Bug or Issue

Use latest WhatsApp Web js to send messages to user not in contact. After 30 min account get blocked

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

Windows WhatsApp-Web. Js latest version

Additional context

No response

rudibr78 commented 1 year ago

Having the same problem. Not sure if it's just a generic reply from whatsapp when banning accounts tho.

tanasecosminromeo commented 1 year ago

Same here. I assume it may be some user agent thing too.

tanasecosminromeo commented 1 year ago

@pedroslopez have you got this issue yet?

popsodav commented 1 year ago

Same here. I assume it may be some user agent thing too.

I tried to change user-agent, but it did not help

rudibr78 commented 1 year ago

Same here. I assume it may be some user agent thing too.

I tried to change user-agent, but it did not help

Tried that too. In case it may help, this is my settings using localauth

const client = new Client({ authStrategy: authStrategy, puppeteer: [ "--no-default-browser-check", "--disable-session-crashed-bubble", '--disable-dev-shm-usage', '--no-sandbox', '--disable-setuid-sandbox', '--disable-accelerated-2d-canvas', '--no-first-run', ], takeoverOnConflict: true, userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36', });

msscsh commented 1 year ago

following

GonzaloAraujoC commented 1 year ago

Be careful, when WhatsApp bans a number, all attempts to reactivate a number using the same IP are automatically marked as spam and the new number is banned. It is not something from the user agent, it is the origin IP. I confirmed this after blocking more than 6 numbers.

PurpShell commented 1 year ago

There is nothing we can do. Email WhatsApp Support to get your number unbanned.

mrfelipemartins commented 1 year ago

WhatsApp has strict policies against spam and the plugin has nothing to do with it. I am not sure if "warming up" a number is actually a thing but might worth the shot. It's important to note that sending messages to non-contact numbers from a fresh account is for sure a red flag for WhatsApp and may result in bans. You better contact WhatsApp about this false positive and avoid trying over and over again from the same IP.

And btw.. tampering with userAgent might not be a good idea.

aseem2625 commented 1 year ago

how can we create-save new contact using whatsapp-web.js?

can this help? https://docs.wwebjs.dev/BusinessContact.html#BusinessContact

mdestafadilah commented 1 year ago

how we know our number is banned? i really not sure, sometime my service logout all devices, then i'm delete account, then register again. and it's work.

msscsh commented 4 months ago

Since this issue is still open and based on the information gathered here... why isn't some kind of lock made? It identifies the IP to which it tried to perform the last actions and when there is a problem it requests that a new one be generated. So many procedures could be done along these lines. The main thing is to identify the point at which an IP can start to be considered "spam" and then alert the user.

"You sent N messages in a period of X minutes, these actions could result in your number/IP being banned from the servers. Perform IP refresh to obtain a new one."

mdestafadilah commented 4 months ago

Since this issue is still open and based on the information gathered here... why isn't some kind of lock made? It identifies the IP to which it tried to perform the last actions and when there is a problem it requests that a new one be generated. So many procedures could be done along these lines. The main thing is to identify the point at which an IP can start to be considered "spam" and then alert the user.

"You sent N messages in a period of X minutes, these actions could result in your number/IP being banned from the servers. Perform IP refresh to obtain a new one."

so, let's say, any limitation if we send message? may for 1 is safe. send message for bulk, may 10 to 100 it's totally safe?

hermit907 commented 4 months ago

Just created a new account on official Whatsapp Android app from Playstore with a new phone number and IP address. That account was banned as soon as I logged in using this library. I did not do any action like sending messages or fetching any data. Just logged in.

mdestafadilah commented 4 months ago

Just created a new account on official Whatsapp Android app from Playstore with a new phone number and IP address. That account was banned as soon as I logged in using this library. I did not do any action like sending messages or fetching any data. Just logged in.

Whatsapp using AI to result your number as BOT. 1. your number is new, you never typed in physical phone, no matter you have hundred IP address. just make sure, you have server with 1 IP Public. 2. Before use this library, try running in 'production' mode. running with PM2. 3. last but not least. make sure, you typed in physical phone as usuall user. i have used this library, from 2019 until now, Alhamdulillah.

budi-fdln commented 4 months ago

Just created a new account on official Whatsapp Android app from Playstore with a new phone number and IP address. That account was banned as soon as I logged in using this library. I did not do any action like sending messages or fetching any data. Just logged in.

Whatsapp using AI to result your number as BOT. 1. your number is new, you never typed in physical phone, no matter you have hundred IP address. just make sure, you have server with 1 IP Public. 2. Before use this library, try running in 'production' mode. running with PM2. 3. last but not least. make sure, you typed in physical phone as usuall user. i have used this library, from 2019 until now, Alhamdulillah.

How can we set to 'production' mode

mdestafadilah commented 4 months ago

Just created a new account on official Whatsapp Android app from Playstore with a new phone number and IP address. That account was banned as soon as I logged in using this library. I did not do any action like sending messages or fetching any data. Just logged in.

Whatsapp using AI to result your number as BOT. 1. your number is new, you never typed in physical phone, no matter you have hundred IP address. just make sure, you have server with 1 IP Public. 2. Before use this library, try running in 'production' mode. running with PM2. 3. last but not least. make sure, you typed in physical phone as usuall user. i have used this library, from 2019 until now, Alhamdulillah.

How can we set to 'production' mode

easy. set in your PM2 configuration.

budi-fdln commented 4 months ago

Just created a new account on official Whatsapp Android app from Playstore with a new phone number and IP address. That account was banned as soon as I logged in using this library. I did not do any action like sending messages or fetching any data. Just logged in.

Whatsapp using AI to result your number as BOT. 1. your number is new, you never typed in physical phone, no matter you have hundred IP address. just make sure, you have server with 1 IP Public. 2. Before use this library, try running in 'production' mode. running with PM2. 3. last but not least. make sure, you typed in physical phone as usuall user. i have used this library, from 2019 until now, Alhamdulillah.

How can we set to 'production' mode

easy. set in your PM2 configuration.

ok thx bro 3 number of my client is banned today

mdestafadilah commented 4 months ago

Just created a new account on official Whatsapp Android app from Playstore with a new phone number and IP address. That account was banned as soon as I logged in using this library. I did not do any action like sending messages or fetching any data. Just logged in.

Whatsapp using AI to result your number as BOT. 1. your number is new, you never typed in physical phone, no matter you have hundred IP address. just make sure, you have server with 1 IP Public. 2. Before use this library, try running in 'production' mode. running with PM2. 3. last but not least. make sure, you typed in physical phone as usuall user. i have used this library, from 2019 until now, Alhamdulillah.

How can we set to 'production' mode

easy. set in your PM2 configuration.

ok thx bro 3 number of my client is banned today

what's your whatsapp using? business or normal whatsapp? i'm using business whatsapp. your number too much, not have control as normal user. you Whatsapp AI detect your number.

budi-fdln commented 4 months ago

standart account, or have to upgrade to business account

mdestafadilah commented 4 months ago

standart account, or have to upgrade to business account

may you can use to business account for thats number, use as daily user, for 1 week. make sure you open whatsapp in you phone every 1 day. cz my number always open by my IT Support, so whatsapp ai identity my BOT has allready human used.

budi-fdln commented 4 months ago

okay i will do that

mdestafadilah commented 4 months ago

okay i will do that

good luck.

budi-fdln commented 4 months ago

thanks bro