Allow script to run
-
Hi,
How can I allow a certain php script to run inside wp-content folder? It’s a thumbnail creation php script and I need to run it for a couple of times.
I used this page as a reference: https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/
I tried both this solution:
if (strpos($_SERVER['SCRIPT_FILENAME'], '/foo/bar/') !== FALSE) { return 'ALLOW'; }
and this:
if (strpos($_SERVER['SCRIPT_NAME'], 'script.php') !== FALSE ) { return 'ALLOW'; }
but none of these worked. What am I doing wrong?
Could you give some tips?
Thank you.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Allow script to run’ is closed to new replies.