View Single Post
Old 09-27-2013, 07:27 AM  
Manfap
Confirmed User
 
Manfap's Avatar
 
Industry Role:
Join Date: Jan 2013
Posts: 2,626
Quote:
Originally Posted by CIVMatt View Post
I wonder if there's a plugin to block .pl users from creating accounts.... assholes
Add to htaccess maybe? I´m not an Apache expert, but I think this should work.

limit the POST function to specific countries. The POST request method is used when the client needs to send data to the server as part of the request, such as when uploading a file or submitting a completed form so keep in mind this will affect all POST methods on your site.

Code:
#BLOCK_POLAND
<Limit POST>
order allow,deny
deny from 46.17.112.0/21
deny from 46.18.104.0/21
deny from 46.20.48.0/20
and so on....


allow from all
</Limit>
#COUNTRY_BLOCK_END
full code here https://dl.dropboxusercontent.com/u/.../blocklist.txt
Manfap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote