WordPress.org

Forums

WordPress File to Restrict with Apache httpd.conf (2 posts)

  1. darthvader666uk
    Member
    Posted 1 year ago #

    Hi All,

    I want to add an extra layer of security to the site and by doing some I want to setup access control via the httpd.conf file as its deeper down the system and less likely to manipulate. This is what I want to go for:

    <Directory />
    Order Deny,Allow
    Deny from all
    Options None
    AllowOverride None
    </Directory>
    <Directory /var/www/html>
    Order deny,allow
    Deny from all
    Allow from 87.82.196.251
    #allowed for click through URLS
    <Files index.php>
    Order deny,allow
    </Files>

    </Directory>
    #used for back end
    #<LocationMatch "services/|csv/|includes/Scrapers/">
    As You can see I will restrct everything under an IP adress and the rest will be restricted from the outside world.

    Is there a master list of files / folders that need to excluded from restrictions?

    Cheers,

    Stu

  2. Jarrod
    Member
    Posted 5 months ago #

    I am also looking to restrict and unrestrict via Httpd.conf is there a document that best explains the way to restrict browse acces and to allow browse access.

Topic Closed

This topic has been closed to new replies.

About this Topic