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?
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?
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: [Select]
<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>
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
Re: Preventing Indexing of links
« Reply #4 on: December 11, 2012, 09:13:11 PM »
great i'll give it a try
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