Hi.
I currently I use the following statements in .htaccess files to block spammy referals from certain websites.
RewriteEngine on # Options +FollowSymlinks RewriteCond %{HTTP_REFERER} spammywebsite1\.com [NC,OR] RewriteCond %{HTTP_REFERER} spammywebsite2\.com [NC,OR] RewriteCond %{HTTP_REFERER} spammywebsite3\.com [NC] RewriteRule .* - [F]
Could someone please tell me what the exact equivelent of the above would be as a Security Rule?
It would be much appreciated.
Thank you!
You can use a rule such as SecRule REQUEST_HEADERS:Referer "!@contains ://%{SERVER_NAME}/" \
On Thu, Jan 28, 2016 at 12:08 PM, Reece NA bramr123@users.sf.net wrote:
Hi. I am new to Mod_Security custom rules. Currently I use the following statements in .htaccess files to block spammy referals from certain websites. RewriteEngine on Options +FollowSymlinks RewriteCond %{HTTP_REFERER} spammywebsite1.com [NC,OR] RewriteCond %{HTTP_REFERER} spammywebsite2.com [NC,OR] RewriteCond %{HTTP_REFERER} spammywebsite3.com [NC] RewriteRule .* - [F] Could someone please tell me what the exact equivelent of the above would be as a Security Rule? It would be much appreciated. Thank you! How to block Referral Spam https://sourceforge.net/p/mod-security/discussion/1298046/thread/6ef6c815/?limit=25#5810 Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mod-security/discussion/1298046/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
I am new to Mod_Security custom rules. Currently I use the following statements in .htaccess files to block spammy referals from certain websites.
RewriteEngine on
RewriteCond %{HTTP_REFERER} spammywebsite1.com [NC,OR] RewriteCond %{HTTP_REFERER} spammywebsite2.com [NC,OR] RewriteCond %{HTTP_REFERER} spammywebsite3.com [NC] RewriteRule .* - [F]
How to block Referral Spam https://sourceforge.net/p/mod-security/discussion/1298046/thread/6ef6c815/?limit=25#5810
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/mod-security/discussion/1298046/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Chaim Sanders http://www.ChaimSanders.com
Log in to post a comment.
Hi.
I currently I use the following statements in .htaccess files to block spammy referals from certain websites.
Could someone please tell me what the exact equivelent of the above would be as a Security Rule?
It would be much appreciated.
Thank you!
Last edit: Reece NA 2016-01-29
You can use a rule such as
SecRule REQUEST_HEADERS:Referer "!@contains ://%{SERVER_NAME}/" \
On Thu, Jan 28, 2016 at 12:08 PM, Reece NA bramr123@users.sf.net wrote:
--
Chaim Sanders
http://www.ChaimSanders.com