I can tell whether a site is using WordPress by looking at the folder where the images are saved (usually site.com/wp-content/uploads/2014/10/image.jpg) or by looking at the source (if they are using plugins it will show).
But is there a way to tell whether a site is using wordpress.com or is self-hosted?
The reason I ask is that self-hosted WP sites allow iframes, while WP sites on wordpress.com don’t.
Check the DNS for the domain or IP with
whois
.A site hosted at WordPress.com, even with a custom domain, will have an DNS records that point to NS1.WORDPRESS.COM, NS2.WORDPRESS.COM, NS3.WORDPRESS.COM
And in page source, images, etc, will be mapped to
s0.wp.com
or similar, oraccountname.files.wordpress.com
or similar, and notdomain.com/wp-content/uploads/...
as in self-hosted.