SRvSaha / CoWinVaccineSlotFinder

Cross-Platform Software to Fetch the Available Slots & Book the Appointment for COVID-19 Vaccination
https://shawt.io/r/sYv
MIT License
81 stars 32 forks source link

Too many hits from IP address #60

Closed Krishnakumar1007 closed 3 years ago

Krishnakumar1007 commented 3 years ago

How can we resolve this issue of too many hits from IP address? Any pointers?

SRvSaha commented 3 years ago

@Krishnakumar1007 This is because CoWIN has introduced IP Throttling. Short term issue resolution technique is to use two different networks and then once you get this error switch to another and back and forth. You can check out the related issue for more details: #53

akshay8043 commented 3 years ago

image

Hi @SRvSaha ,

Saw the above issue on comment #53 Do you think we can use any proxy to bypass the IP blacklisting.

Can you confirm if this issue persists for version 4.1?

Can you tell when they have started the IP throttling?

SRvSaha commented 3 years ago

@akshay8043 Yes, you can bypass using any proxy server provided you have 3/4 proxy servers. Or simple way would be to try from 2/3 IPs. Another way around is to try using some VPN. See what works for you.

The issue is not specific to this version. They havw added throttling from yesterday and hence all version and all applications for that matter will face the same issue.

saurabhkrr commented 3 years ago

so if ip throttling is added from yesterday ..how come these alert bots are not effected by it

SRvSaha commented 3 years ago

@saurabhkrr It's simple, the bots might not be hosted in system with single IP. Let's say a bot is hosted in cloud in N number of Virtual Machines, all having different IP Addresses, they can still notify you without getting throttled. Challenge comes when the number of PIN/Districts for which the Bot is searching increases. So, suggestion would be to use multiple networks, else rely on the notification of the bots and then book! Either way you are through

SRvSaha commented 3 years ago

@akshay8043 @saurabhkrr Check this https://github.com/bombardier-gif/covid-vaccine-booking/issues/288

saurabhkrr commented 3 years ago

IMG_20210524_090604

saurabhkrr commented 3 years ago

at try#3 there was 4 hospitals and at try#5 a slot came but it got fully booked... increasing sleep interval is not helping

SRvSaha commented 3 years ago

@saurabhkrr See, this is like a trade-off we have to do, that's why we have made it configurable. Let's say you know that stop will come at 9 am and get notified using some notifier like U45 Telegram Group, then you can turn off the IPThrottling from the Config file by setting "IsThrottlingToBeUsed": false You can even change the default sleep time to "SleepIntervalInMilliseconds": 1000 so that it runs every 1 second.

This will help you do the booking provided you know when slots will come since you will be making too many requests from your IP. Also, keep another network/proxy server, from where you can search, so that you have multiple networks and when 1 IP is banned, you use the other one and so on and so forth

SRvSaha commented 3 years ago

Cross Platform Support is enabled with Version 5.0.0 Release.

Linux: https://github.com/SRvSaha/CoWinVaccineSlotFinder/releases/tag/v5.0.0-linux Mac: https://github.com/SRvSaha/CoWinVaccineSlotFinder/releases/tag/v5.0.0-osx Windows: https://github.com/SRvSaha/CoWinVaccineSlotFinder/releases/tag/v5.0.0-windows