Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. if ($http_referer ~* spamdomain1.com) {
  2. return 444;
  3. }
  4. if ($http_referer ~* spamdomain2.com) {
  5. return 444;
  6. }
  7. if ($http_referer ~* spamdomain3.com) {
  8. return 444;
  9. }
  10.  
  11. map $http_referer $bad_referer {
  12. default 0;
  13. spamdomain1.com 1;
  14. spamdomain2.com 1;
  15. spamdomain3.com 1;
  16. }
  17.  
  18. if ($bad_referer) {
  19. return 444;
  20. }
  21.  
  22. if ($http_referer ~ "spamdomain1.com|spamdomain2.com|spamdomain3.com") {
  23. return 444;
  24. break;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement