Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Block Referrers by Wildcard?

Bryan
Minted
Posted on Apr 01, '08 at 02:18 pm

Howdy Minters,

Is one able to hide referrers from the referrers tab using a wildcard? Example, I get a lot of referrers from WordPress.com because of a theme I created, but blocking just “wordpress.com” doesn’t seem to work, nor does “*.wordpress.com”. If not, it’s of no consequence, it’s just getting slightly annoying. :)

Cheers, Bryan

Hey Bryan,

you can edit the default pepper file : class.php. If want to turn off wordpress.com permnently then edit the getHTML_Referrers functions. Add referer not like ‘%wordpress.com%’ to the where clause.

It’s a hack, but it should handle what you want.

Greg

Shaun Inman
Mint/Pepper Developer
Posted on Apr 02, '08 at 10:27 am

Do not add “%wordpress.com%” to the WHERE clause. Mint uses secondary indexed integer checksum columns rather than indexing string columns (o increase the speed of INSERTs). That is why wild-cards are not available in the first place. Adding the suggested code would really hammer your database server (as would adding an index for the string referrer column if you have any kind of significant traffic).

Opps, thanks Shaun

Is there any way to do this? Because I’m getting clogged with Yahoo mail server and Windows Live mail server referrals. I have tried blocking mail.yahoo.com and yahoo.com for example, and still, the referrals from sites like

us.mc840.mail.yahoo.com us.mg2.mail.yahoo.com us.mc333.mail.yahoo.com ca.mc882.mail.yahoo.com us.mc882.mail.yahoo.com us.mc331.mail.yahoo.com us.f827.mail.yahoo.com us.f501.mail.yahoo.com us.mg1.mail.yahoo.com us.mc1104.mail.yahoo.com us.f806.mail.yahoo.com us.f822.mail.yahoo.com

continue to roll in. I have tried manually blocking each one (which is mighty time consuming I might add) and after I reached a few hundred, it stopped filtering all together.

Any help would be greatly appreciated or, geez, I dunno… a fix?

You must be logged in to reply. Login above or create an account