« first day (4614 days earlier)      last day (325 days later) » 

1:59 PM
A caddy question - does anyone have an example caddy config file they can share, that shows how to have caddy i) serve an index.html file ii) passes other requests through to PHP. I thought it should be this:
*.docs.basereality.com:80, docs.basereality.com:80 {
	root * /var/app/public

	php_fastcgi php_fpm:9000

	file_server

	@static {
		file
		path *.ico *.css *.js *.gif *.jpg *.jpeg *.png *.svg *.woff *.woff2 *.json *.html
	}
but that gives a 502 error when I go to / instead of an index file...
 
 
6 hours later…
7:48 PM
$hostname = gethostbyaddr('34.175.160.64');
//geo-crawl-34-175-160-64.geo.googlebot.com

str_contains($hostname, 'googlebot');


Is it possible for someone else to include 'googlebot.com' in their hostname?
 
Yes, easily. googlebot.com.their.domain.com
Use str_ends_with and search for ".googlebot.com"
 
8:26 PM
@Mwthreex what problem are you trying to solve?
 
 
2 hours later…
10:37 PM
@MarkR That is not secure either. You can put anything you desire into your PTR record ("reverse DNS").
To verify the correctness, the reverse lookup should be verified by a forward lookup.
 
10:49 PM
You can also verify if ip is in listed ip ranges developers.google.com/search/docs/crawling-indexing/…
 

« first day (4614 days earlier)      last day (325 days later) »