Sravan kunnummal.
Sravan kunnummal.

Reputation: 41

403 response when making a get request

I'm getting a 403 response when making a get request to this website (https://volusia.county-taxes.com) using python3 in aws EC2 server. But I'm getting success response in my local system using same code.

Please help me. Why im not able to make a get request in aws ec2 server?

In aws EC2 server

import requests
requests.get('https://volusia.county-taxes.com')

<Response [403]>

In my local system

import requests
requests.get('https://volusia.county-taxes.com')

<Response [200]>

Upvotes: 0

Views: 130

Answers (1)

E.J. Brennan
E.J. Brennan

Reputation: 46879

Can't say for sure, but a 403 is a 'forbidden' code, and it is not all that unusual for some websites to block traffic from the ec2 ip ranges to cut down on the number of bots/scrapers that tend to abuse websites and are often run on aws and other cloud providers.

Its possible that either the entire ec2 ip range is blocked, or else just some of the ips - especially if you have been running some sort of scraper from that ip, it may be blacklisted.

Upvotes: 1

Related Questions