Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Ban an IP?

#1 2005-11-29 21:59:44

Germaris
Member
From: Montreal, QC Canada
Registered: 2005-11-12
Posts: 44
Website

Ban an IP?

I noticed two IPs from suspected “sniff” activity in the activity panel.
How and where do I ban their IPs?


If destiny is against us, just too bad for it!

Offline

#2 2005-11-30 13:43:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,117
Website GitHub Mastodon Twitter

Re: Ban an IP?

This is what I have in my .htaccess file

<code>order allow,deny
deny from host-207-248-240-119.block.alestra.net.mx
deny from 148.244.150.58
deny from 207.248.240.119
deny from 148.244.150.57
deny from 212.239.120.129
deny from 202.83.174.42
deny from 63.145.165.121
deny from 207.232.206.5
deny from 211.46.197.60
deny from 66.237.84.20
deny from 207.248.240.118
deny from 80.88.3.4
deny from 209.191.9.229
deny from 165.138.175.85
deny from 211.126.196.172
deny from 80.227.56.46
deny from 211.40.153.4
allow from all</code>


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2005-12-03 15:58:06

Germaris
Member
From: Montreal, QC Canada
Registered: 2005-11-12
Posts: 44
Website

Re: Ban an IP?

Thank you for your reply.

But I wonder if there isn’t another method to ban IPs.
It isn’t easy and practical to edit the .htaccess file…

For example in phpbb Admin CP you have some fields where you enter the chosen IPs, then click a button and… voilà!
Does such a feature exist in TXP?

Last edited by Germaris (2005-12-03 18:17:21)


If destiny is against us, just too bad for it!

Offline

#4 2005-12-03 18:30:24

NyteOwl
Member
From: Nova Scotia, Canada
Registered: 2005-09-24
Posts: 539

Re: Ban an IP?

If you have cPanel at a hosting provider, there is a provision to ban IP’s in there. If you have your own server you can use a hosts.deny file. Numerous options :-)


Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;

Offline

#5 2005-12-04 01:09:31

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Ban an IP?

But I wonder if there isn’t another method to ban IPs.

Textpattern has built-in support for banning IP’s from submitting comments.

Banning IP’s from making GET requests at the application level (i.e. in PHP) is mostly useless. In extreme cases, use .htaccess. For minor annoyances, you’re wasting your time.


Alex

Offline

  1. Index
  2. » Archives
  3. » Ban an IP?

Board footer

Powered by FluxBB