Recent Topics

1 Apr 27, 2004 22:06    

I've noticed that I'm consistently coming up as my own biggest referrer. Makes sense, since I have about a bagillion internal links (like most websites.)

I'd like to remove all the referrer hits from my own site. Ok, this can be done easily enough in MyAdmin. However, I'd also like to ban my own site from logging referrer hits, in order to not have to do this again later. Which wouldn't be a problem, except that all my comment replies have my site listed as the URL.

So, if I ban myself, to cut down on meaningless referrer hits, then I also lose all my comments. That's no good.

It would be best to do this in one of two ways:
1. Be able to ban a referrer without deleting all the comments.
2. Don't log referrer hits from within the same domain.

Any thoughts?
Maybe there's a way to do this that I'm just overlooking?

Thanks

Isaac
http://isaac.beigetower.org

2 Apr 27, 2004 22:16

normally the second should work already.
if not, you can add the domain to the blacklist in conf/_stats.php

3 Apr 27, 2004 22:40

Kiesow, you're right... that should work already....

So I shouldn't be my biggest referrer...

Aha. I just realized that they're coming from http://isaac.beigetower.org/b2evolution/blogs. I had initially set up b2evolution there, then in order to keep the consistency of any links, I replaced the stub files to a quicky php redirect script.

So, it looks like it's ignoring the clicked internal links, but a php redirect (I believe it's HTTP 302, but I'm not certain at the moment) gets logged as a valid hit.

I'll look into this a bit more this evening, maybe I'll discover that there's already a way to do that. Sure wouldn't be the first time :oops:

4 Apr 27, 2004 22:43

Hm, you should use 301 Moved rather than 302 Found if you've moved it permanently.

[added:]But yes, there should be checkboxes for what you want to delete; comments and/or stats, or delete nothing. How about that?

-Vegar

5 Apr 27, 2004 22:47

Ha! It appears that I'm not sending any server status at all, just a location. That would explain why the spiders keep crawling there. You're right, I should really stick a "Status: 301" in the header. (To my credit, I had just started learning php when I moved my b2evo blog out of the shadows.)

Vegar wrote:

But yes, there should be checkboxes for what you want to delete; comments and/or stats, or delete nothing. How about that?

That would be splendid.

6 Apr 28, 2004 18:30

Funky M wrote:

[added:]But yes, there should be checkboxes for what you want to delete; comments and/or stats, or delete nothing. How about that?

That's already been done for about 3 weeks now.

7 Apr 28, 2004 19:29

Oi. :oops:
I should spend a couple of minutes to "cvs update" then. :)

-Vegar

8 Apr 28, 2004 20:03

That makes two of us!

Isaac

9 Sep 15, 2004 19:30

for your information, I added details in the "paris" release:

/**
 * Blacklist: domains that should not be logged for stats
 *
 * The following substrings will be looked up in the referer http header
 * THIS IS NOT FOR SPAM! Use the Antispam features in the admin section to control spam
 * WARNING: you should *NOT* use a blackslash at the end of simple domain names, as
 * older Netscape browsers will not send these. For example you should list
 * http://www.example.com instead of http://www.example.com/ .
 */
$blackList = array(
	$baseurl,
	'localhost',
	'127.0.0.1',
	// stat services
	'sitemeter.com/',
	// add your own...
);


Please note: no trailing slash on blacklisted URLS!

10 Aug 11, 2005 19:26

sorry to revive this old post, but I had a question along the same lines.

I have recently installed b2, and I really like it. The stats area I am not at all very happy. I am also showing myself as my ONLY referrer. I have 4 blogs total at my site. This will probably change in the future.

Anyway, it would make sense that when I click a link in one part of my site and I want to go to another that it would show myself as the referrer. In my case, I am linked from a couple of places, and even when I click from external links, the referrer stat still shows myself as the regerrer. What's going on? How do I fix this?

Could it be that my site is in a frame and that's what's causing the problem ? I am NOT a coder by any means, but I can follow instructions.

www.uncommonblogger.com

Also, b2 needs a MUCH more comprehensive stats logging.
1. UNIQUE hits to the site
2. Log unique IP's

11 Aug 12, 2005 14:29

As stated above, go to the _stats.php file in the conf/ directory.

There's a bit of code near the top that says:

/**
 * Blacklist: referrers that should be hidden in stats. This should typically include this
 * site as well as stat services, online email services, online aggregators, etc.
 *
 * The following substrings will be looked up in the referer http header
 * in order to identify referers to hide in the logs
 *
 * THIS IS NOT FOR SPAM! Use the Antispam features in the admin section to control spam!
 *
 * WARNING: you should *NOT* use a slash at the end of simple domain names, as
 * older Netscape browsers will not send these. For example you should list
 * http://www.example.com instead of http://www.example.com/ .
 *
 * @global array $blackList
 */
$blackList = array(
	$baseurl,
	'http://localhost',
	'http://127.0.0.1',
	// stat services
	'sitemeter.com/',
	// aggregators
	'bloglines.com/',
	// caches
	'/search?q=cache:',		// Google cache
	// redirectors
	'googlealert.com/',
	// add your own...
	'http://jazzcrazed.com'
);

Add your site within apostrophes here.

12 Aug 12, 2005 18:11

Thank you!

I'm still wondering though why when I go to my site through a link from another site it still records my site as the referrer. So I'll never know when someone is:

A: Linking to me
B: Whether they got to my site from a nother site that is linking to my site

Any help?


Form is loading...