Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-04-19 15:38:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,000
Website

How do I block referrers from domain extensions?

I am getting a lot of spam referrers from .porn and .taxi domain extensions. As both of those handles are irrelevant to our sites, I’m trying to figure out how to block all referrers from them.

Can anyone give me some pointers?


Yiannis
——————————
neme.org | hblack.net | LABS | NeMe @ github

Offline

#2 2017-04-19 15:44:48

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 2,638
Website

Re: How do I block referrers from domain extensions?

You can do that in the .htaccess file, see here

Offline

#3 2017-04-19 16:23:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,000
Website

Re: How do I block referrers from domain extensions?

Hi Phil… Thanks for the link. I am currently using another method which does not need all the backslashes but the list is getting very big. As such I am trying to find a way to block all referrers who use .porn and .taxi extensions. Although I am all too aware that this is a losing battle I am not giving up just yet:)


Yiannis
——————————
neme.org | hblack.net | LABS | NeMe @ github

Offline

#4 2017-04-19 16:28:32

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,347

Re: How do I block referrers from domain extensions?

On this website perishablepress.com you can also find many tips.

Offline

#5 2017-04-19 17:02:25

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,000
Website

Re: How do I block referrers from domain extensions?

GugUser wrote #305397:

On this website perishablepress.com you can also find many tips.

That’s for query strings :(


Yiannis
——————————
neme.org | hblack.net | LABS | NeMe @ github

Offline

#6 2017-04-19 17:45:13

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,347

Re: How do I block referrers from domain extensions?

I know, but on the same site you can find many other tips.

Offline

#7 2017-04-20 05:57:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,000
Website

Re: How do I block referrers from domain extensions?

GugUser wrote #305401:

I know, but on the same site you can find many other tips.

Thanks… I looked through it and did not find anything. I guess with the proliferation of new domain extensions, it will be just a matter of time before a blocking solution will turn up.


Yiannis
——————————
neme.org | hblack.net | LABS | NeMe @ github

Offline

#8 2017-04-20 11:17:04

gaekwad
Member
From: North Cornwall, UK
Registered: 2005-11-19
Posts: 1,965

Re: How do I block referrers from domain extensions?

Yiannis, are you using purely Textpattern access/referrer stats, or another product/service?

Offline

#9 2017-04-20 11:55:33

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,000
Website

Re: How do I block referrers from domain extensions?

Hi Pete,

I’m using slimstat & google analytics. The issue though is not only the stats but also the bandwidth. 3 days ago I got about 1600 ‘page views’ (within 20 minutes) from various .porn and .taxi spam referrers. This is basically the reason I want to block both extensions in the htaccess file.


Yiannis
——————————
neme.org | hblack.net | LABS | NeMe @ github

Offline

#10 2017-04-21 08:41:06

gaekwad
Member
From: North Cornwall, UK
Registered: 2005-11-19
Posts: 1,965

Re: How do I block referrers from domain extensions?

colak wrote #305408:

This is basically the reason I want to block both extensions in the htaccess file.

Forgive me if I’m covering well-trodden ground: have you thought about Cloudflare? Cuts back on the bots significantly and has other benefits, too. The $20/month plan may well save you some hours and pay for itself.

Offline

Board footer

Powered by FluxBB