Restrict PHP whitelist
-
I am wanting to enable the discuz ajax function for article rating.
It does not function due to a rule in .htaccess as below# Restrict Access to Theme and Plugins PHP Files
RewriteRule wp-content/plugins/(.*\.php)$ – [R=404,L]I have attempted to whitelist the wpdiscuz by
RewriteCond %{REQUEST_URI} !^/wp-content/plugins/wpdiscuz/utils/ajax/wpdiscuz-ajax\.php
RewriteCond %{REQUEST_URI} !^/wp-content/plugins/wpdiscuz/utils/ajax/
RewriteRule wp-content/plugins/(.*\.php)$ – [R=404,L]This is not working and I suspect I am missing something.
When I try to save a rating it looks like ajax but it does not save the rating. Is there another php file that needs whitelisting to allow this to function?
The topic ‘Restrict PHP whitelist’ is closed to new replies.