公开页面,然后根据设置隐藏页面。如何?
我的网站上有用户个人资料。用户可以通过选中复选框(可通过搜索引擎搜索)将其公开,并取消选中该框以阻止在搜索引擎上搜索该页面。网站位于 php codeignitor 中。
这是如何实现的?我特别不知道当用户取消选中阻止页面公开的框时,这是如何完成的以及如何尽可能实时地执行此操作? Facebook 或 linkedin 上的个人资料就是一个很好的例子。
I have user profiles on my site. Users can make it public by checking a checkbox (search able via a search engine) and uncheck the box to block the page from being searched on a search engine. Site is in php codeignitor.
How is this accomplished? I am esp lost on when the user unchecks the box to block the page from being public how is that done and how to do this in as real time as possible? A good example are the profiles on fb or linkedin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这并不安全,但您可以检查访问者的引用 URL,并通过查找搜索引擎的地址来允许/拒绝他们的请求。结果仍然会显示在 Google 中,并且会有页面缓存(您可以使用
标记来停止)。
基本上,警告用户,当他们将页面公开时,之后将其设为私有并不那么容易。我会让它成为一个乏味而痛苦的过程,因为人们会抱怨“你的网站坏了”。
This isn't secure, but you could check the referring URL of the visitors and allow/deny their requests by looking for a search engine's address. The results would still show up in Google, and there would be page caching (which you can kinda stop with a
<meta>
tag).Basically, warn the users that when they make the page public, it's not that easy to make it private after that. I'd make it a tedious and painful process, as people will complain that "your site is brokeded".
自动从 Google 中删除页面的最快方法
您可以使页面在 1 到 2 小时内从 google SERPS 中消失(如果您的网站会定期被抓取)。
注意:如果您想一次删除数千个页面,此过程将需要更长的时间。
the fastest way to get pages automatically removed from google
with this method you can make pages disappear from google SERPS in 1 to 2 hours (if your site gets crawled regularly).
note: if you want to kick out thousands and thousands of pages at once this process will take longer.