PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, March 9, 2022

[FIXED] Confidential data showing on google search. How to disable?

 March 09, 2022     codeigniter     No comments   

Issue

I developed a helpdesk system in our company and put on web.

One of my colleague reported to me that his employee info is shown on the Google search when he tried to search for his name. There's a module where the system asks for an employee number when applying for service request and retrieve some basic employee info.

How can I disable this? Is it something to do with SEO? I don't have enough idea.

I am using Codeigniter as my framework.

Any help is greatly appreciated.


Solution

In CodeIgniter view files inside head add Meta tag

meta name="robots" content="noindex"

<!DOCTYPE html>
<html><head>
<meta name="robots" content="noindex" />
(…)
</head>
<body>(…)</body>
</html>

The robots meta tag in the above example instructs search engines not to show the page in search results. For detailed info please check this documentation by Google. https://developers.google.com/search/docs/advanced/robots/robots_meta_tag



Answered By - James Mascarenhas
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing