Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location = /wp-login.php {
- allow 1.1.1.1;
- deny all;
- fastcgi_pass unix:/var/sockets/sock.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_param HTTPS on;
- }
- location ~* ^(/wp-login.php?ywsl_social=google|/wp-login.php?ywsl_social=twitter) {
- deny 2.2.2.2;
- allow all;
- fastcgi_pass unix:/var/sockets/sock.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- fastcgi_param HTTPS on;
- }
- if ($request_uri !~ ^(/wp-login.php?ywsl_social=google|/wp-login.php?ywsl_social=twitter) ) {
- deny 2.2.2.2;
- allow all;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement