• Resolved jeez09

    (@jeez09)


    When I harden contents and includes folder. I’m getting 403 error while using word press social login plugin which need following folders white-listed. I’ve copied below complete error. How can i white-list a whole directory. Plugin allows white-listing individual php files only

    Error: Your web server returned “403 Forbidden” when checking WSL end-points.

    This issue usually happen when :

    1. Your web host uses mod_security to block requests containing URLs (eg. hosts like HostGator, GoDaddy and The Planet). On this case, you should contact your provider to have WSL end-points urls white-listed.

    2. There is a .htaccess file that prevent direct access to the WordPress plugins directory.

    how do i whitelist an particular path while is keep hardneding enable for wp-contents folder .
    i read in the post i need to edit the .htaccess file . can you please guide me how to edit the htacess and whitelist an path .

Viewing 1 replies (of 1 total)
  • Create a new “.htaccess” inside the directory that you want to whitelist with these rules:

    <FilesMatch "\.(?i:php)$">
      <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
      </IfModule>
      <IfModule mod_authz_core.c>
        Require all denied
      </IfModule>
    </FilesMatch>

    However, it would be better if you can ask the “WordPress Social Login” developer which PHP files needs to be whitelisted. If you whitelist the entire directory you will allow outsiders to execute all PHP files contained there even if they are not necessary for the functionality that the plugin provides.

    • This reply was modified 9 years, 1 month ago by yorman.
Viewing 1 replies (of 1 total)

The topic ‘whitelist an url path’ is closed to new replies.