403:Forbidden

whenever my service provide post my delivery report to my server they get 403:Forbidden.

Make sure you’ve whitelisted Cloudflare IPs and/or restored visitor IP addresses. Otherwise every incoming IP will look like a Cloudflare IP, and your delivery software will likely not look like a whitelisted IP.

so please where do i whitelist Cloudflare ips

Either you do it in the firewall close to the origin.
Or you do it in the .htaccess file on your webserver at the origin.

However, I am also getting the same issue WITH the Cloudflare range whitelisted.
It worked like a charm yesterday. Does not work today.

cat .htaccess

Begin Static IPs
Allow from 127.0.0.1
Allow from “add your own ip here”

END Static IPs
Begin Cloudflare IPs
IPv4
Allow from 173.245.48.0/20
Allow from 103.21.244.0/22
Allow from 103.22.200.0/22
Allow from 103.31.4.0/22
Allow from 141.101.64.0/18
Allow from 108.162.192.0/18
Allow from 190.93.240.0/20
Allow from 188.114.96.0/20
Allow from 197.234.240.0/22
Allow from 198.41.128.0/17
Allow from 162.158.0.0/15
Allow from 104.16.0.0/12
Allow from 172.64.0.0/13
Allow from 131.0.72.0/22

IPv6
Allow from 2400:cb00::/32
Allow from 2606:4700::/32
Allow from 2803:f800::/32
Allow from 2405:b500::/32
Allow from 2405:8100::/32
Allow from 2a06:98c0::/29
Allow from 2c0f:f248::/32
#END Cloudflare IPS

Forgot the top one, and apparently the formatting cut out some of the hashtags…

Begin Static IPs
Allow from 127.0.0.1
Allow from “add your own ip here”

END Static IPs

Begin Cloudflare IPs

IPv4

Allow from 173.245.48.0/20
Allow from 103.21.244.0/22
Allow from 103.22.200.0/22
Allow from 103.31.4.0/22
Allow from 141.101.64.0/18
Allow from 108.162.192.0/18
Allow from 190.93.240.0/20
Allow from 188.114.96.0/20
Allow from 197.234.240.0/22
Allow from 198.41.128.0/17
Allow from 162.158.0.0/15
Allow from 104.16.0.0/12
Allow from 172.64.0.0/13
Allow from 131.0.72.0/22

IPv6

Allow from 2400:cb00::/32
Allow from 2606:4700::/32
Allow from 2803:f800::/32
Allow from 2405:b500::/32
Allow from 2405:8100::/32
Allow from 2a06:98c0::/29
Allow from 2c0f:f248::/32

END Cloudflare IPS

This topic was automatically closed after 14 days. New replies are no longer allowed.