The Unofficial Karoo User Forums
May 21, 2012, 11:49:48 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Chat Help Search Calendar Login Register  
Pages: 1 [2]
  Print  
Author Topic: Forum link spammers  (Read 1845 times)
Ace247
Ofcom Inspector
******
Broadband Provider: Ex Airnet ... Back with ...Karoo.. Pro 2
Posts: 1285



View Profile
« Reply #15 on: August 24, 2010, 09:58:39 pm »

All it seemed to do was make the web server run really badly.
Ha so it was you who messed the site up... Roll Eyes
Any ideas?
Unfortunately not sorry... Sad
Logged
dylan
Administrator
Ofcom Inspector
*****
Broadband Provider: Karoo (Karoo Pro 1)
Posts: 1116



View Profile
« Reply #16 on: August 24, 2010, 10:01:01 pm »

Heh. You'll get used to me mucking the server up  Cheesy
Logged

Karoo Pro 1 Customer
Ace247
Ofcom Inspector
******
Broadband Provider: Ex Airnet ... Back with ...Karoo.. Pro 2
Posts: 1285



View Profile
« Reply #17 on: August 24, 2010, 10:05:05 pm »

no worries bud...thought it was my Internet... Shocked
Logged
miken
Ambassador
Director
**
Broadband Provider: Karoo
Posts: 597


View Profile
« Reply #18 on: August 24, 2010, 11:11:49 pm »

Right try this out,

Code:
GeoIPEnable On
GeoIPDBFile /var/www/GeoIP.dat
RewriteEngine on
RewriteCond %{QUERY_STRING} action=register
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} !^GB$
RewriteRule ^index.php$ blocked.php [L]

*/*/*/GeoIP.dat may have been confusing it, stick so the full address or maybe you meant ./././

I hate RewriteCond confusing I had to use action=register otherwise you could change the url to ?blah=foo&action=register or ?action=register&anything to get around it.

I'm going to try and figure out how to have the RewriteCond only allow UK, without having to block every other country code.


Figured that out just have to use ! Smiley
« Last Edit: August 24, 2010, 11:26:26 pm by miken » Logged
dylan
Administrator
Ofcom Inspector
*****
Broadband Provider: Karoo (Karoo Pro 1)
Posts: 1116



View Profile
« Reply #19 on: August 25, 2010, 09:56:19 am »

I'll give it a go when I get the minute. The path to the GeoIP.dat file was obfusticated on purpose  Wink
Logged

Karoo Pro 1 Customer
dylan
Administrator
Ofcom Inspector
*****
Broadband Provider: Karoo (Karoo Pro 1)
Posts: 1116



View Profile
« Reply #20 on: September 07, 2010, 03:15:03 pm »

Gave up on that! I've set administrator approval required for new registrations after deleting a whole load of new spam accounts. Forum administrators will get an email when a new member registers and will be able to activate accounts now.
Logged

Karoo Pro 1 Customer
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!