/** * Respect the "noarchive" meta tag as described here: http://noarchive.net/meta/ * Sample tags that will prevent archiving: * <meta name="robots" content="noarchive"> * <meta name="amber" content="noarchive"> * <meta name="robots" content="noarchive, noindex"> * <meta name="amber" content="noindex"> * @param string $body HTML document to example * @return boolean true if there is an application no-archive tag, false otherwise */ public static function find_meta_no_archive($body) { $head = AmberNetworkUtils::get_head($body); if (preg_match("/<meta\\s+name\\s*=\\s*['\"](robots|amber)['\"].*content\\s*=\\s*['\"].*(noarchive|noindex).*['\"]/i", $head, $matches)) { return TRUE; } else { return FALSE; } }