Skip to content

Instantly share code, notes, and snippets.

@irazasyed
Created February 12, 2015 13:14
Show Gist options
  • Save irazasyed/56e713815888563c9c03 to your computer and use it in GitHub Desktop.
Save irazasyed/56e713815888563c9c03 to your computer and use it in GitHub Desktop.
PHP: Block Robots using Headers in PHP.
<?php
@header('X-Robots-Tag: "none, noindex, nofollow, noarchive, nosnippet, noodp, notranslate, noimageindex"');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment