Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-09 15:00:27

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Banning traffic

I’m getting quite a lot of spam in my log files. By this I mean referrals from sites that either want to sell me something or install malware.

Is there a way to prevent traffic from specific sites? Or IP addresses?

It would be great if this was something that could be easily managed in TXP.

Offline

#2 2008-03-09 15:07:10

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: Banning traffic

Also, the search function in the visitor logs page doesn’t seem to work. I get ‘No results found.’ for Hosts and referrers ahd I know are there.

Offline

#3 2008-03-09 16:00:48

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Banning traffic

Spam in log files can be prevented by disabling logging (which is good for performance as well)

Offline

#4 2008-03-10 01:24:04

lozmatic
Member
From: Melbourne, Australia
Registered: 2006-08-27
Posts: 259
Website

Re: Banning traffic

yes, but i’m addicted to the visitors log page. I don’t think I can do without.

Offline

#5 2008-03-10 06:48:09

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Banning traffic

You can use .htaccess file to ban those addresses and ips

<Limit GET POST>
	order allow,deny
	deny from 193.110.145.185
	deny from 200.100.100.100
	allow from all
</Limit>

RewriteEngine on
RewriteCond %{HTTP_REFERER} badsite\.com [NC,OR]
RewriteCond %{HTTP_REFERER} badsite\. [NC,OR]
RewriteRule .* - [F]

In example ;)

Last edited by Gocom (2008-03-10 06:48:22)

Offline

Board footer

Powered by FluxBB