Protecting wp-admin and wp-login.php with nginx

Installing iThemes Security Plugin gives you a huge security to your site, but nevertheless bots and all the junk online will keep bugging you and the WP security will block them (Still process) I did some research and found the best way to block incoming junk is to keep your admin section quiet protected.

If your security freak and you would like to allow only certain pages to be executed you can add this rule:

This configuration will allow you to keep your site clean from attempts.


Gabriel Ajabahian
Software Engineer Freelance
I am a Freelance consultant, I’m passionate about creating dynamic applications. With 10+ years technical experience as well as working on major application systems for top down.

I have extensive software engineering experience, recently I focus on Scala/Java and JavaScript. On the other hand, I have experience with C# and .net framework/core. I focus on integrating applications that are built against different frameworks and can run on different platforms.

Scalability, efficiency and performance are key topics for any software, that’s why I keep track of the newest technologies, I never underestimate the power of the cloud, that’s why I do believe in using this power with “edge applications” to expand software’s and solutions to a new level.

Being a software engineer who understand the business as well as my team, looking at things from different perspectives. Being open and honest and investing in relationship makes a big difference.

Specialties: Software development, Scrum/Agile, Process and Problem management.