Recent Topics

completely prevent referrers from being displayed?

Started by on Mar 08, 2005 – Contents updated: Mar 08, 2005

Mar 08, 2005 07:59    

Hello,

I realise this is not a unique problem-I have been working my backside off trying to block bogus referrers by domain,server side..

Anyway,now,it is getting extremely horrible-I run a Feminist blog & they are spamming links to "pregnant_a**l","horny_grannies" etc -suffice to say,all things which I cannot tolerate appearing on the blog.

Could anyone please tell me how to disable that feature? I wish to NOT display ANY referrers at all.I cannot watch the blog 24/7 then remove these things as soon as they appear.

Tracing the I.P. addresses to block via Apache is also time consuming.I have done nothing but this for weeks now,and it's getting me down.

Thanks for listening.

Sadie

Mar 08, 2005 08:42

look for anything that looks like and remove it:

<?php if (! $stats) 
	{ ?>
	
	<div class="bSideItem">
		<h3><?php echo T_('Recent Referers') ?></h3>
			<?php refererList(5,'global',0,0,'no','',($blog>1)?$blog:''); ?>
	  	<ul>
				<?php while($row_stats = mysql_fetch_array($res_stats)){  ?>
					<li><a href="<?php stats_referer() ?>"><?php stats_basedomain() ?></a></li>
				<?php } // End stat loop ?>
				<li><a href="<?php bloginfo('blogstatsurl') ?>"><?php echo T_('more...') ?></a></li>
			</ul>
		<br />
		<h3><?php echo T_('Top Referers') ?></h3>
			<?php refererList(5,'global',0,0,'no','baseDomain',($blog>1)?$blog:''); ?>
	   	<ul>
				<?php while($row_stats = mysql_fetch_array($res_stats)){  ?>
					<li><a href="<?php stats_referer() ?>"><?php stats_basedomain() ?></a></li>
				<?php } // End stat loop ?>
				<li><a href="<?php bloginfo('blogstatsurl') ?>"><?php echo T_('more...') ?></a></li>
			</ul>
	</div>

	<?php } ?>

look for this part :

<?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, STATS ETC. ----------------
	switch( $disp )
	{
		case 'comments':
			// this includes the last comments if requested:
			require( dirname(__FILE__).'/_lastcomments.php' );
			break;

		case 'stats':
			// this includes the statistics if requested:
			require( dirname(__FILE__).'/_stats.php');
			break;
		
		case 'arcdir':
			// this includes the archive directory if requested
			require( dirname(__FILE__).'/_arcdir.php');
			break;

		case 'profile':
			// this includes the profile form if requested
			require( dirname(__FILE__).'/_profile.php');
			break;
	}
// ------------------- END OF INCLUDES FOR LAST COMMENTS, STATS ETC. ------------------- ?>

and remove this part

case 'stats':
			// this includes the statistics if requested:
			require( dirname(__FILE__).'/_stats.php');
			break;


thats a start.

Mar 08, 2005 09:11

Oh,thank you so,so much!

I can't tell you what a relief that will be! WOW! what a complete nightmare those referrers are!

Mar 08, 2005 10:21

I did it-the referrers are still listed (the old ones,I mean-those that are legitimate).However,I have just tried clicking a link from one of our domains that's linked to the Blog-no referrer appeared on the Blog.

Can't thank you enough-just wanted to let you know peace reigns once again.

Happy International Womens' Day!


Form is loading...

Build your own site! – This forum is powered by b2evolution CMS, a complete engine for your website.