I have seen that the "Rate Limiting" is by IP adress, but I use the same Cloudflare account for 3 different web pages and in the last month I receive many errors (...over the allowed limit of 40...).
My question is, this IP limit is given from the website DNS IP address?
As you already know, cloudflare have shared IP with thousands of websites with the same ip address, then, it may not be the best idea to use CloudFlare...
Many thanks.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by fakku
on May 28, 2019 at 5:22 AM
i'm pretty sure that's not how it works.
when your code sends a request to tmdb they get the ip of the server/computer the request comes from, not cloudflare.
cloudflare is not a proxy or a vpn.
Reply by pepe2com
on May 28, 2019 at 8:52 AM
CloudFlare is a system that acts as a proxy (intermediary) between the visitors of the site and the server. By acting as a proxy, CloudFlare temporarily saves static content from the site, which decreases the number of requests to the server but still allows visitors access to the site.
Reply by fakku
on May 28, 2019 at 9:03 AM
in a way yes, but it's only when a user visits a site that uses cloudflare. not when the server itself sends a request to another server
test it yourself, it's easy:
the above will return the ip address that canhazip.com sees, use whois on that ip and you'll see that it's not a cloudflare ip
Reply by pepe2com
on May 28, 2019 at 9:18 AM
Yes - https://canhazip.com - don`t use cloudflare: https://intodns.com/canhazip.com
I mean a website that uses this service, for example: https://intodns.com/hdfull.me
Reply by fakku
on May 28, 2019 at 9:52 AM
you don't seem to understand what i'm saying.
to make it simple for you, the movie db DOES NOT get your cloudflare ip when you make an api request to it.
Reply by pepe2com
on May 28, 2019 at 10:33 AM
Ok this file, will show only the IP of the second site: https://pepecinehd.online/clip.php
In this case how determine the movie db which is the IP address of the first page, since the main purpose of cloudflare is to HIDE the real ip address of the server
Reply by Travis Bell
on May 28, 2019 at 10:58 AM
The IP address that is used for rate limiting will be the IP address of the computer making a request to api.themoviedb.org. So depending how you have things setup, this could be:
The only way I can imagine a way that we'd ever be rate limiting a Cloudflare IP would be if you're using Cloudflare Workers. Otherwise, it's going to be one of the options above.
Reply by fakku
on May 28, 2019 at 12:51 PM
now you're just embarrassing yourself.
canhazip.com is a site that outputs the ip of the requester, if you go to it through your browser it will show you the ip of your computer
if your server goes to it, in this case makes a request through php's file_get_contents() it will return the ip address of your server
the ip address of your server is "2001:41d0:303:435a", this is an ipv6 address.
when a user goes to your website the request goes through cloudflare
when your server goes to a website it sends the server's ip address to that website, not cloudflare's ip