# This file is automatically generated by WP Toolkit.
# Please do not modify the contents of this file, because this can lead to reduced security or malfunctioning of your website.
# If the file was accidentally modified or otherwise damaged, you can regenerate it by deleting it and reapplying all security
# measures for this site in WP Toolkit UI.

    # "Block access to wp-config.php"
    # To remove this rule, revert this security measure on each WordPress installation on this domain
    <Files wp-config.php>
                    Require all denied
            </Files>

    # "Block access to xmlrpc.php"
    # To remove this rule, revert this security measure on each WordPress installation on this domain
    <Files xmlrpc.php>
                    Require all denied
            </Files>

# "Block directory browsing"
# To remove this rule, revert this security measure on each WordPress installation on this domain
<Directory "/home/veneelk/public_html">
    Options -Indexes
</Directory>

                # "Enable hotlink protection"
        # To remove this rule, turn off this feature for WordPress installation #78
        <IfModule mod_rewrite.c>
            <Directory "/home/veneelk/public_html/wp-content/uploads">
                RewriteEngine on
                RewriteCond %{HTTP_REFERER} !^$
                                RewriteCond %{HTTP_REFERER} !^https?://(.*\.)?jayantha.venee.lk(:|/|$) [NC]
                                RewriteCond %{HTTP_REFERER} !^https?://(.*\.)?venee.lk(:|/|$) [NC]
                                RewriteCond %{HTTP_REFERER} !^https?://(.*\.)?venee.lk.66-85-158-91.cpanel.site(:|/|$) [NC]
                                RewriteCond %{HTTP_REFERER} !^https?://(.*\.)?google.com(:|/|$) [NC]
                                RewriteRule \.(gif|png|jpeg|jpg|svg)$ "/home/veneelk/public_html/wpt\-hotlinked\-image\-stub\.png" [NC]
            </Directory>
            <Directory "/home/veneelk/public_html">
                <Files "wpt-hotlinked-image-stub.png">
                    RewriteEngine on
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteRule .* - [NC,F,L]
                </Files>
            </Directory>
        </IfModule>

                                                            # "Block access to sensitive files"
    # To remove this rule, revert this security measure on each WordPress installation on this domain
    <LocationMatch "(?i:(?:wp-config\\.bak|\\.wp-config\\.php\\.swp|(?:readme|license|changelog|-config|-sample)\\.(?:php|md|txt|htm|html)))">
                    Require all denied
            </LocationMatch>

    # "Disable PHP execution in cache directories"
    # To remove this rule, revert this security measure on each WordPress installation on this domain
    <LocationMatch "(?i:.*/cache/.*\\.ph(?:p[345]?|t|tml))">
                    Require all denied
            </LocationMatch>

