We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    I stumbled onto this example for banning access from a troublesome domain.

    I haven’t tried it and there may be a down side I don’t know about, but it looks useful although it can tricky to determine the real domain of a trickster. (The domains listed are just examples -- you’d need to put in the domains of people that are annoying you.)

    (add to .htaccess file)

    ## USER IP BANNING
    <Limit GET POST>
    order allow,deny
    deny from 42.12.5.34
    deny from 193.110.145.185
    deny from 212.173.53.
    deny from 69.242.
    allow from all
    </Limit>

    Bob

      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 31337
      • 258 Posts
      Note that if you put enough stuff in your .htaccess file, it will eventually impact performance of your site as Apache has to parse the file for every request that it gets