Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
Re: Banning traffic
Spam in log files can be prevented by disabling logging (which is good for performance as well)
Offline
Re: Banning traffic
yes, but i’m addicted to the visitors log page. I don’t think I can do without.
Offline
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
Pages: 1