A simple rule to block all links | Mod Security | Forum

 
You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

A simple rule to block all links

Post
Admin

webmaster

posts 3

10:48 am August 24, 2011

Post edited 10:51 am – August 24, 2011 by webmaster


SecRule ARGS_POST "=href" "phase:2,t:lowercase,log,auditlog,drop"

 

This is a simple rule that prevents links from being posted on any of my sites. It stops most spammers dead in their tracks.

 

This will drop the TCP connection and give them an error, if you want them to get the deny message just change drop to deny. Oh and if you want to post links yourself you would need to whitelist your admin directory or your IP.


About the Secure My Website! Forum

Forum Timezone: UTC -4

Most Users Ever Online: 9

Forum Stats:

Groups: 3
Forums: 6
Topics: 4
Posts: 6

Membership:

There are 2 Members

There are 2 Admins