XML Sitemaps Generator

Author Topic: Preventing Indexing of links  (Read 10906 times)

brittv

  • Approved member
  • *
  • Posts: 4
Preventing Indexing of links
« on: December 10, 2012, 11:48:47 PM »
Hi guys, i use a bit of basic php to allow users to report issues on my site eg ?report=1

Im trying to exclude these links from my pro sitemap but to no avail. I tried writing them in javascript but it seems the webcrawler still picks them up.

Anyone any ideas?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Preventing Indexing of links
« Reply #1 on: December 11, 2012, 04:41:07 PM »
Hello,

could you please let me know the full URL and exclusion rule you are using?
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

brittv

  • Approved member
  • *
  • Posts: 4
Re: Preventing Indexing of links
« Reply #2 on: December 11, 2012, 08:59:08 PM »
Im not quite sure what you are asking but the report links are dynamic  and written in a combination of PHP and Javascript:

Code: [external links are visible to admins only]
<script type="text/javascript">
ob=function(o,q){return (typeof o==='string')?((o==='')?q:document.getElementById(o)):o;};
inr=function(r,t,u){if(!(r=ob(r))){return;}r.innerHTML=u?(((u===1)?t:'')+r.innerHTML+((u===2)?t:'')):t;};
if (__ossIsLoggedIn == 1) {
inr("reportlink",'<a href="<?php
$url
="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; echo $url?>
&report=1">Report this video</a>');
}
</script>

xml-sitemaps

  • Administrator
  • Sr. Member
  • *****
  • Posts: 146
    • XML-Sitemaps.com
Re: Preventing Indexing of links
« Reply #3 on: December 11, 2012, 09:12:08 PM »
Putting

&report=1

in the exclude urls box should work
Philip Nicosia
www.xml-sitemaps.com

brittv

  • Approved member
  • *
  • Posts: 4
Re: Preventing Indexing of links
« Reply #4 on: December 11, 2012, 09:13:11 PM »
great i'll give it a try

brittv

  • Approved member
  • *
  • Posts: 4
Re: Preventing Indexing of links
« Reply #5 on: December 12, 2012, 07:46:33 PM »
I'm afraid that has not worked. It is still adding the links with report=1

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Preventing Indexing of links
« Reply #6 on: December 12, 2012, 09:03:45 PM »
I've just added "report=" in your settings, please check now.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2