Question
Googlebot can't access your site
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×Hi,
My websites are working fine,I am using Ubuntu 12.04 ufw and some specific ports are allowed.ICMP is also blocked.Issue is when I enable firewall Googlebot unable to access my sites but when I disable UFW ,Googlebot can access my sites.
Thanks in advance.
Try enabling ICMP, Googlebot probably uses that. Edit /etc/ufw/before.rules
and uncomment -A ufw-before-input -p icmp --icmp-type echo-request -j ACCEPT
and restart ufw.
Thanks Kamal ,I will try this ,Is there no option to allow googlebot with ICMP blocked?
It’s a bit hard to do that because Google doesn’t publish a list of IPs that it uses for Googlebot so you’ll need to allow everyone to send ICMP packets (ICMP packets are the packets that sent when you run ping your-ip
) which doesn’t really affect your droplet’s security.
Hi Kamal,
Here is my UFW configuration.
-A ufw-before-input -p icmp –icmp-type destination-unreachable -j DROP
-A ufw-before-input -p icmp –icmp-type source-quench -j DROP
-A ufw-before-input -p icmp –icmp-type time-exceeded -j DROP
-A ufw-before-input -p icmp –icmp-type parameter-problem -j DROP
-A ufw-before-input -p icmp –icmp-type echo-request -j ACCEPT
As per your suggetion ,I changed DROP to ACCEPT in last line.
Is it ok or I have to ACCEPT all ICMP?