[TAC] Stop Country Spam

[TAC] Stop Country Spam [Paid] 3.1.5

No permission to buy ($19.00)
I'm still getting the below in my log (nginx) if StopProxies is enabled.
Code:
2013/06/10 00:15:39 [error] 28189#0: *259 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'StopCountrySpam' (T_STRING) in /var/www/twowheel/library/Tac/StopCountrySpam/Model/StopProxies.php on line 279" while reading response header from upstream, client: 24.49.69.204, server: twowheeldemon.com, request: "POST /login/login HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "twowheeldemon.com", referrer: "http://twowheeldemon.com/login/login"
 
A small issue with this... I blocked a persistent members country who wouldn't stop hounding us, being the United Arab Emirates. Not a country we have anyone from other than this member... I also blocked all countries directly around it.

The member could still view the site, use contact us, post in the guest forum, etc. It doesn't stop them accessing the site outright. This is your latest version... as I had uninstalled this prior and reinstalled it just for this member who just wouldn't stop. It didn't stop them, and their IP still got through without issue.

That's intentional, this plugin only stops the country from registering.

I'm still getting the below in my log (nginx) if StopProxies is enabled.
Code:
2013/06/10 00:15:39 [error] 28189#0: *259 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'StopCountrySpam' (T_STRING) in /var/www/twowheel/library/Tac/StopCountrySpam/Model/StopProxies.php on line 279" while reading response header from upstream, client: 24.49.69.204, server: twowheeldemon.com, request: "POST /login/login HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "twowheeldemon.com", referrer: "http://twowheeldemon.com/login/login"

Check this file: "Tac\StopCountrySpam\Model\StopProxies"
on line 279, it should have the quotes escaped
Code:
AND addon_id = \'StopCountrySpam\'
and not look like this
Code:
AND addon_id = 'StopCountrySpam'
 
That's intentional, this plugin only stops the country from registering.



Check this file: "Tac\StopCountrySpam\Model\StopProxies"
on line 279, it should have the quotes escaped
Code:
AND addon_id = \'StopCountrySpam\'
and not look like this
Code:
AND addon_id = 'StopCountrySpam'

That was apparently it... I had deleted the add-on and uploaded everything again and still had the problem. Modified the file and it works.
 
Rather than outright block these people, could we instead put their content (messages, signature etc.) into the moderation queue? Or only put it in the queue if it contains a link?
 
So I have uploaded the files on a 1.2 RC2 install and when I go to install the addon it gives me this:

Code:
The files associated with this add-on could not be found. Please upload them and try again.
 
Make sure your file location is:

library\Tac\StopCountrySpam\addon-StopCountrySpam.xml

I've installed this one 1.2 RC1
 
Have you set it up on a real environment, if so, just set the JSON Request and index name to the following:

JSON Request: http://api.wipmania.com/{$ip}
Index Name: (none)

do not change $ip.. this is exactly how it should look if using this request site:


test.webp

I could add this by default, but I don't want a particular JSON request site to find they are getting too many requests.

I would also recommend registering on wipmania and getting a key (it's free), you'll then be allowed unlimited requests. Let me know how you get on
 
Have you set it up on a real environment, if so, just set the JSON Request and index name to the following:

JSON Request: http://api.wipmania.com/{$ip}
Index Name: (none)

do not change $ip.. this is exactly how it should look if using this request site:


View attachment 52483

I could add this by default, but I don't want a particular JSON request site to find they are getting too many requests.

I would also recommend registering on wipmania and getting a key (it's free), you'll then be allowed unlimited requests. Let me know how you get on

with this seetings added countrys will be blocked ?
 
my default was
and added countrys dont be blocked

Yeah, I would change your API request site, use easyjquery as mentioned above, they seem pretty good

Also, make sure you have the correct folder structure. I'm going to update the single add-on version of this
 
Yeah, I would change your API request site, use easyjquery as mentioned above, they seem pretty good

Also, make sure you have the correct folder structure. I'm going to update the single add-on version of this

i copy actual version into both folders. library/StopCountrySpam & library/Tac/StopCountrySpam

but with this seetings country dont be blocked for registration.

Code:
JSON Request

http://api.easyjquery.com/ips/?ip="{$ip}"&full=true

Index Name

countryCode2
 
Top Bottom