Page Index Toggle Pages: 1 [2] 
Topic Tools
Hot Topic (More than 10 Replies) Blocking IP Address via .htaccess (Read 3,308 times)
Captain John
Ex Member


Re: Blocking IP Address via .htaccess
Reply #1 - Aug 19th, 2010 at 2:29pm
Post Tools
The htaccess file in the yabb2 folder should look like this:
Code
Select All
# Last modified by The Guardian: Aug 19<sup>th</sup>, 2010 at 10:24am #


<Files YaBB*>
Deny from 195.2
Deny from 222.190
Deny from 124.217
Deny from 92.241
Deny from 194.110
Deny from 203.62
Deny from 203.70
Deny from 203.76
Deny from 203.162
</Files> 



    Adding/deleting IPs should be done from the Admin Center - The Guardian - Global and Server Settings window
  
Back to top
 
IP Logged
 
Jkulin
Junior Member
**
Offline



Posts: 59
Location: Staffs. UK
Blocking IP Address via .htaccess
Aug 19th, 2010 at 12:01pm
Post Tools
I need to block some users from visiting the forum altogether.

I tried editing the .htaccess file under/cgi-bin/yabb2 by add the following lines: -

# Last modified by The Guardian: 10<sup>th</sup> Aug, 2010 at 11:08pm #
# allow all except those indicated here
<Directory /cgi-bin/yabb2>
order allow,deny
allow from all
deny from 86.112.172.18
deny from 217.33.200.46
deny from 195.93.21.34
deny from 195.93.21.6
deny from 195.93.21.33
deny from 195.93.21.67
deny from 195.93.21.69
deny from 195.93.21.5
deny from 217.33.200.46
deny from 78.144.91.146
deny from 149.254.56.9
deny from 195.93.21.72
</Files>

Have I missed something out as it comes up with an apache server error, sorry if I am being a pain!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Topic Tools
 
  « Board Index ‹ Board  ^Top