Block seach engine in page

Posted by

1. Use META tag

Insert below in header tag

<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">

2. Use robots.txt

Create  Robot.txt   and put it on Root  of  Directory that you need to access files or Folder

Definition :

# robots.txt for

User-agent: *

Disallow: /directoryname/

Disallow: /filename.html
  • User-Agent : is name of Robot, in this case is mean all of them *