Welcome! Log In Create A New Profile

Advanced

Deny Access to php files wordpress / excluding one path

Posted by TommySG 
Deny Access to php files wordpress / excluding one path
May 15, 2017 06:52PM
Hello Folks!

I denied the direct access of php files ins my my site.conf (..../sites-enabled/mydomain.tld.conf)

# Disable direct access of any *.php in /wp_content folder
location ~ ^/wp-content/.+\.php$ {
return 444;
}

Thats working well!
But i grant access to one plugin folder:

/wp-content/plugins/these1plugin/

How can i exclude it?

Any idea
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 130
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready