Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Hi there,
I would like to know if there is a possibility to exclude rules per files basis.
What I mean is that I have some php files that trigger alerts and I can't modify those files, I don't want to comment mod sec rules for the whole server, only for whose files.
Any way those files are special and are not available to the public.
The preferred way to have mod_security cover your server is by running it on everything except some exceptions, not on "just a few files". Make certain your motivation for doing that is based not on arbitrary reasons like logging, annoyances et cetera. Excluding a file can be done either by removing a rule (SecRuleRemove) or a location match container.
What I'm interested in is the state of your server. Up to now you've posted quite a lot of questions with a security component, culminating in http://www.linuxquestions.org/questi...-pages-725844/, quite a few of which you've never gotten back to to respond properly. I acknowledge it is your right to stubbornly seek your own way doing things your way, but in the grand scheme of things I'd rather see you provide closure regarding important issues. If that doesn't work for you then try to see it simply as reciprosity.
Thank you unSpawn !
You are right, I'll try to motivate and respond back every time when I post something. This forum represents very much for me because I learned a lot from here.
And yes, I am very interested in Security.
About mod_security, we have an e-learning System (made in-house) and there is an exam about bash scripts and users have to post some scripts in a web page (html <textarea>).
Of course modsec blocks something like this, this is normal.
But, all the users are not strange persons, we know them (we know their address, personal data etc) and I think the possibility that someone attacks the server is very low. Of course there could be worms or something on their machine.
We cant change thinks right away because the system in in production with hundreds or maybe thousands of users and the programming team said it needs months to change that thing.
I think there is no other way but to exclude that file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.