Advertisement
Guest User

Untitled

a guest
May 14th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. location = /wp-login.php {
  2. allow 1.1.1.1;
  3. deny all;
  4. fastcgi_pass unix:/var/sockets/sock.sock;
  5. fastcgi_index index.php;
  6. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  7. include fastcgi_params;
  8. fastcgi_param HTTPS on;
  9. }
  10.  
  11. location ~* ^(/wp-login.php?ywsl_social=google|/wp-login.php?ywsl_social=twitter) {
  12. deny 2.2.2.2;
  13. allow all;
  14. fastcgi_pass unix:/var/sockets/sock.sock;
  15. fastcgi_index index.php;
  16. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  17. include fastcgi_params;
  18. fastcgi_param HTTPS on;
  19. }
  20.  
  21. if ($request_uri !~ ^(/wp-login.php?ywsl_social=google|/wp-login.php?ywsl_social=twitter) ) {
  22. deny 2.2.2.2;
  23. allow all;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement