AlterCPA Bancpa.st/ban
Door policy for Telegram chats

Not on the list? Great, come on in.

A guest list in reverse: if you are on it, you don't get in. This is where the user ids of Telegram spammers already caught in the act are kept. Two plain-text files, one id per line. Grab them and filter — the cat at the door has written everyone down.

list.txt new.txt Ids only — no names, no messages
Purr, a grey fluffy bouncer cat in a bow tie, stands at the velvet rope outside a night-club door: a clipboard of red crosses in one paw, the other raised — stop. On the far side of the rope, two sorry-looking spam envelopes, one clutching a gold card, and a little robot. They are not getting in.

The cat at the door. Stern, but fair. No cats were harmed in the making of this list. Several spammers were.

Two doors

The whole base and the last 24 hours. That is all you need: the cat behind the door has already made up its mind.

The main base

list.txt

The whole list — every id the cat has turned away at the door. Fetch it once an hour, keep it in memory, compare.

rewritten every hour tens of megabytes, and growing
The update

new.txt

The last 24 hours — ids that were listed, or listed again, in the last 24 hours. Fetch it often and merge it into the base: no gaps between the hourly rewrites.

rewritten every 5 minutes small

How to use it

No sign-up, no keys. A file is a file.

  • Plain textOne decimal user id per line, no header, nothing else. Readable by anything — eyes included.
  • Numbers onlyNo names, no usernames, no message texts. The cat writes down the id and nothing else — the rest does not interest it.
  • Conditional requestsSend If-None-Match or If-Modified-Since and get a 304 when nothing has changed. gzip is on, too.
  • Be nice to the catlist.txt once an hour, new.txt every 5 minutes if you like. The cat remembers everything and appreciates good manners.

One line in cron

Once an hour, at seven past. The file downloads only if it changed; otherwise the server answers 304 and the cat does not even look up.

7 * * * * cd /path/to/dir && curl -fsSR --compressed -z list.txt -o list.txt https://cpa.st/ban/list.txt

Polling list.txt more than once an hour is almost always pointless: the cat rewrites it on the hour. The rest of the time you get the same file, a 304 and a tired look.

Why not :00? On the hour the cat is busy rewriting the list. Don't breathe down its neck — come at seven past.

Whose cat is this

The list belongs to AlterCPA, and its main reader is AlterCPA TOP.