Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My message board (which has very little traffic) keeps getting hit by spammers with russian federation addresses.
So, I've decided to block the entire russian federation from my site. Who needs 'em?
Problem is, I haven't managed to find a source that will provide me with a complete (or nearly so) list of IP ranges associated with the russian federation.
Does anyone here have such a list or know where I can obtain one? I'd prefer to not have to do a DNS lookup on every site access; I want to just block all the IPs using .htaccess.
1) Don't use .htaccess if it's not absolutely necessary. Same thins can be done in the main config file, and that is faster. Using .htaccess means the server looks trough every .htaccess file every time access permissions need to be checked.
2) Don't block the entire "russian federation". Why? Because 1* you can't be sure each one of them is a badass, and therefore you have no reason to block those good guys from accessing your place; after all, the idea of Internet is to allow people surf internationally; 2* have you ever thought the actual people interfering might hide behind IP addresses they don't actually use themselves (there are several ways of achieving this; I don't think many people are stupid enough to use their own IPs)
I don't host my own websites, I use a hosting service. Thus I don't have control of the main config file.
And, I really don't care if people in russia can't view my site; none of them have ever purchased my product anyway. All the traffic from there proves troublesome; easiest for me just to block it. Also, I couldn't care less if machines in russia are relays for spammers; those are the machines hitting my site, so blocking those machines will block the problem unless the spammers are so interested in my site particularly that they seek access from other locations (this seems unlikely).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.