Crossing from a particular site



  • Describe the option of blocking the transition from a certain Nginx website and Apache2



  • Found a response for nginx in configuration in the Server section.

    if ($http_referer ~* "site\.ru") {
    return 403;
    }
    

    for Apache2

    RewriteCond %{HTTP_REFERER} ^http://www\.site\.(.*) [NC]
    RewriteRule .* - [F]
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2