homepage Welcome to WebmasterWorld Guest from 50.17.21.7
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
htaccess rule to ban a top-level domain
Direct Referral Marketing spammer
lvilletxmike




msg:4664053
 8:05 am on Apr 18, 2014 (gmt 0)

I need help writing a RewriteRule to ban host37.server6.example.com. I created this rule: RewriteCond %{HTTP_USER_AGENT} *.example\.com [NC,OR] but example.com appears under several servers.

[edited by: coopster at 1:29 pm (utc) on Apr 18, 2014]
[edit reason] please use example.com domain, thanks! [/edit]

 

wilderness




msg:4664183
 2:53 pm on Apr 18, 2014 (gmt 0)

SingleHop [webmasterworld.com]

FDCSERVERS [whois.arin.net]

wilderness




msg:4664416
 4:25 pm on Apr 19, 2014 (gmt 0)

1) Gather all the SingleHop & FDC CIDR's.
2) Create lines for all IP's.
a) Ex:
Deny From 184.154.0.0/16

Please note; there are other lines that will be required (there are multiple examples in both this forum and the SSID forum)to make these IP lines complete and functional, however a full copy and paste solution is beyond the charter of this forum.

Don

lvilletxmike




msg:4664422
 5:23 pm on Apr 19, 2014 (gmt 0)

You have been a lot of help! My email got spoofed recently, so I am taking all precaution. 175,608 emails were sent out and I don't ever want that to happen again. Just think how productive the idiot could be that did that if he'd get a real job. Thanks again, Don.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved