Stop Google from indexing [closed]
robots.txt User-agent: * Disallow: / this will block all search bots from indexing. for more info see: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=40360
robots.txt User-agent: * Disallow: / this will block all search bots from indexing. for more info see: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=40360
The default action of the pull-to-refresh effect can be effectively prevented by doing any of the following : preventDefault’ing some portion of the touch sequence, including any of the following (in order of most disruptive to least disruptive): a. The entire touch stream (not ideal). b. All top overscrolling touchmoves. c. The first top overscrolling … Read more
You should have a look at this class: PHP Simple HTML DOM it works this way: include(‘simple_html_dom.php’); $html = file_get_html(‘http://www.codeigniter.com/’); echo $html->find(‘title’, 0)->innertext; // get <title> echo “<pre>”; foreach($html->find(‘meta’) as $element) echo $element->name . ” : ” . $element->content . ‘<br>’; //prints every META tag echo “</pre>”;
This is of course invalid as per HTML4.01. META tags are only allowed within HEAD (just like, say, TITLE) so by putting it into a BODY, you’re essentially creating an invalid markup. From the cursory tests, it seems that some browsers (e.g. Firefox 3.5 and Safari 4) actually put these elements into HEAD when creating … Read more
Open Graph OG Tags must be within the sourcecode! You need to provide a static html page containing the the open graph tags like og:image og:title and og:description in the html sourcecode, since facebook, twitter and co a just scraping the plain html without rendering it through javascript. Angular dynamically updates the dom through js … Read more
You can add it: var meta = document.createElement(‘meta’); meta.httpEquiv = “X-UA-Compatible”; meta.content = “IE=edge”; document.getElementsByTagName(‘head’)[0].appendChild(meta); …but I wouldn’t be surprised if by the time that ran, the browser had already made its decisions about how to render the page. The real answer here has to be to output the correct tag from the server in … Read more
First, I want to reiterate that I am almost positive that your problem is due to the fact that the url you are passing into the debugger is not dynamically generated. The url tag essentially acts as a redirector. Unless it’s the exact same (meaning the meta tags on the url meta object is the … Read more
Just use something like: var author = $(‘meta[name=author]’).attr(‘content’); or this as well var author = $(‘meta[name=author]’).prop(‘content’);
They are viewport meta tags, and is most applicable on mobile browsers. width=device-width This means, we are telling to the browser “my website adapts to your device width”. initial-scale This defines the scale of the website, This parameter sets the initial zoom level, which means 1 CSS pixel is equal to 1 viewport pixel. This … Read more
HTML5 You can only use the following values in HTML5. If you need a value not listed, you’d have to register it first. name values Standard metadata names (defined in the HTML5 spec) MetaExtensions (registered in the WHATWG wiki according to the HTML5 spec) http-equiv values Pragma directives (defined in the HTML5 spec) PragmaExtensions (registered … Read more