Bug meet with Simple Ads Manager

After several months where the plugin Simple Ads Manager works.
I’ve got 403 error for each ajax request on this files :

  • wp-content/plugins/simple-ads-manager/sam-ajax.php
  • wp-content/plugins/simple-ads-manager/sam-ajax-loader.php

I found finally alone the problem, some security plugin like Sucuri Security allow you to protect wp-content folder.

Sucuri Security plugin generate .htaccess in the wp-content with :
<Files *.php>
deny from all
</Files>

That was the problem !

I resolve it with an other .htaccess in wp-content/plugins/simple-ads-manager/ where i put :
<FilesMatch « sam-ajax.php|sam-ajax-loader.php »>
Allow from all
</FilesMatch>

I was thinking about desactive this plugin to test, but protection .htaccess was not clear when you uninstall or delete the plugin.

I hope my messages will help someone else.

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *


Time limit is exhausted. Please reload CAPTCHA.