Created
February 12, 2015 13:14
-
-
Save irazasyed/56e713815888563c9c03 to your computer and use it in GitHub Desktop.
PHP: Block Robots using Headers in PHP.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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