Bash script to watch a log file and react to help catch form spam
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I found your post on SO Best way to follow a log and execute a command when some text appears in the log
You are at the very bottom of the post where you made it readable and that makes sense (to some degree) I get it as a concept...
I have a PHP form processor. It's integrated into a few hundred websites and multiple forms on websites. I have done a lot of user-friendly spam catching etc for these forms but as we all know it's painful.
How can I use the post above to say count the number of times a certain IP Address filled out a form. ie. this IP has filled out Xnum forms in X seconds, it's a robot, ban this IP via iptables and record this to a different log so we can expire them based on a date-time in that log. Sort of a general idea and I'm sure there are many solutions, but I don't have one. Any suggestions would be very much appreciated. - Thanks in Advance
linux bash centos
New contributor
add a comment |Â
up vote
0
down vote
favorite
I found your post on SO Best way to follow a log and execute a command when some text appears in the log
You are at the very bottom of the post where you made it readable and that makes sense (to some degree) I get it as a concept...
I have a PHP form processor. It's integrated into a few hundred websites and multiple forms on websites. I have done a lot of user-friendly spam catching etc for these forms but as we all know it's painful.
How can I use the post above to say count the number of times a certain IP Address filled out a form. ie. this IP has filled out Xnum forms in X seconds, it's a robot, ban this IP via iptables and record this to a different log so we can expire them based on a date-time in that log. Sort of a general idea and I'm sure there are many solutions, but I don't have one. Any suggestions would be very much appreciated. - Thanks in Advance
linux bash centos
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I found your post on SO Best way to follow a log and execute a command when some text appears in the log
You are at the very bottom of the post where you made it readable and that makes sense (to some degree) I get it as a concept...
I have a PHP form processor. It's integrated into a few hundred websites and multiple forms on websites. I have done a lot of user-friendly spam catching etc for these forms but as we all know it's painful.
How can I use the post above to say count the number of times a certain IP Address filled out a form. ie. this IP has filled out Xnum forms in X seconds, it's a robot, ban this IP via iptables and record this to a different log so we can expire them based on a date-time in that log. Sort of a general idea and I'm sure there are many solutions, but I don't have one. Any suggestions would be very much appreciated. - Thanks in Advance
linux bash centos
New contributor
I found your post on SO Best way to follow a log and execute a command when some text appears in the log
You are at the very bottom of the post where you made it readable and that makes sense (to some degree) I get it as a concept...
I have a PHP form processor. It's integrated into a few hundred websites and multiple forms on websites. I have done a lot of user-friendly spam catching etc for these forms but as we all know it's painful.
How can I use the post above to say count the number of times a certain IP Address filled out a form. ie. this IP has filled out Xnum forms in X seconds, it's a robot, ban this IP via iptables and record this to a different log so we can expire them based on a date-time in that log. Sort of a general idea and I'm sure there are many solutions, but I don't have one. Any suggestions would be very much appreciated. - Thanks in Advance
linux bash centos
linux bash centos
New contributor
New contributor
New contributor
asked 16 mins ago
Scott Thompson
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Scott Thompson is a new contributor. Be nice, and check out our Code of Conduct.
Scott Thompson is a new contributor. Be nice, and check out our Code of Conduct.
Scott Thompson is a new contributor. Be nice, and check out our Code of Conduct.
Scott Thompson is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476173%2fbash-script-to-watch-a-log-file-and-react-to-help-catch-form-spam%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password