Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

blocking IP's
show user profile  bonzepeet

i remembera while ago happydude was saying he was blocking IP's on a site of his, just wondered how you go about that as one of my sites message boards is being spammed full of links to virus laden junk... any help would be spiffing!


read 495 times
8/15/2006 1:10:35 PM (last edit: 8/15/2006 1:10:35 PM)
show user profile  HappyDude2
Hi Bonzepeet

If you have a Cpannel, use the IP blocking feature and enter in the ranges you want to block.

If you don't have CPannel, just create a file in your web root (or whereever you want to restrict access) called: .htaccess and put the following lines in:

deny from 60.173.
deny from
deny from

for each range, where the IP adresses replace my example addresses above...

Where you leave off the last part of the IP address (eg: 192.168.0.) this would block everyone coming from 192.168.0.x

The blanks are widlcards.

Here's the link to my original thread:

In there you will find links to the DNS testbed where you can look up what country the spammers IP is from, and what range is assigned to that country.

As Timpa noted, this solution is not for everyone, as you may be blocking more then just that region (if other legit ISP's and service providers sold out to low cost Chinese, Korean, etc... services, you may block them as well... do soem testing with the DNS Testbed).

For me, it's been working great, as I'm only really interested in Canadian visitors, as it's an Ontario mountain bikign web site. :)

Hope that helps!

Also, if you disallow anonymous posting on your forum, it "should" stop the spamming. But this is anoying if you want legit peopel to be able to post without registering.

read 487 times
8/15/2006 1:22:41 PM (last edit: 8/15/2006 1:25:20 PM)
show user profile  bonzepeet
cheers happy that's perfect!

i'll stick with anonymous posting though, as we get more 'passing trade' than regulars there. looks like the costa ricans won't be having quite so much fun from now on though : ) hurrah!

thanks a lot : D

read 462 times
8/15/2006 2:24:57 PM (last edit: 8/15/2006 2:24:57 PM)
#Maxforums IRC
Open chat window