• Welcome to Sitemap Generator Forum.
 

Preventing Indexing of links

Started by brittv, December 10, 2012, 11:48:47 PM

Previous topic - Next topic

brittv

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?


brittv

Im not quite sure what you are asking but the report links are dynamic  and written in a combination of PHP and Javascript:


<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

Putting

&report=1

in the exclude urls box should work
Philip Nicosia

brittv


brittv

I'm afraid that has not worked. It is still adding the links with report=1