We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34197
    • 138 Posts
    Hi,


    I am receiving huge traffic from different url.


    Is there a way to block these url ? Can I do it with Rampart, or should I edit my .htaccess file ?

    Thanks for your help.
      Webdesigner and musician.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      .htaccess will prevent the IP from accessing MODx at all. With Rampart, MODx first has to be evoked and begin processing.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 42901 ☆ A M B ☆
        • 73 Posts
        I wish Rampart had a way to block posts or user's who enter specific website addresses. I'm getting pounded daily by some Wordpress 101 Tips website.

        Is the only way to stop this would be to block the offending I.P.?
          Woodlands Ad Agency
          Our blog should NOT be read by anyone....EVER http://woodlandsadagency.com/blog/
          ...Don't say we didn't warn you.
          • 42046
          • 436 Posts
          You can block the IP, or you can block referral traffic from specific sites using htaccess.

          RewriteEngine on
          # Options +FollowSymlinks
          RewriteCond %{HTTP_REFERER} dodgysite\.com [NC,OR]
          RewriteCond %{HTTP_REFERER} anotherdodgysite\.com
          RewriteRule .* - [F]


          order allow,deny
          deny from 123.45.6.7
          deny from 999.88.7.
          allow from all


          In the IP blocking, leaving off the last number will block the entire range within 999.88.7.