I'm currently using a custom set of mod security rules that works beautifully, however, one of the rules I added:
Blocks any attempt to visit any url on the server with .txt in the request uri, it works how I want it to to prevent any remote injection like ht tp://trimedia-online.net/ihmank/id.txt (no thats not my site, it was an attempt that was blocked). However, it blocks bots from reading robots.txt.Code:SecRule REQUEST_URI|ARGS "\.txt"
Is there any way I can have it block any url with .txt in the REQUEST_URI with the exception of robots.txt? I'm sure there is, I'm just not any good with regex :/
Thanks
- John



LinkBack URL
About LinkBacks
Reply With Quote





