# BEGIN GeoIP Blocking for kowelding.com.au
# Generated by GeoIP Location Blocker Plugin
<IfModule LiteSpeed>
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(AF|DZ|BH|BD|IN|IR|IQ|IL|KZ|KP|OM|PH|QA|RO|RU|RS|SK|SO|ZA|SS|LK|SY|TR|VN)$ [NC]
RewriteRule ^.*$ - [F,L]
</IfModule>
# END GeoIP Blocking
<IfModule mod_rewrite.c>
RewriteEngine On
#DREAMIT BAD BOT RULES
# Block very old or fake User-Agents
RewriteCond %{HTTP_USER_AGENT} Windows\sNT\s5(\.[0-9])? [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Windows\sNT\s4 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Windows\s98 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Windows\s95 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Windows\sCE [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Macintosh.*PPC [NC,OR]
RewriteCond %{HTTP_USER_AGENT} MSIE\s[1-8]\. [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Chrome\/([0-9]|1[0-5]|2[0-5])\. [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Opera\/9\.[0-9]+\. [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Firefox\/3\.[0-9]+ [NC]
RewriteRule ^.* - [F,L]

# Block specific suspicious OS/browser versions
RewriteCond %{HTTP_USER_AGENT} Mac\sOS\sX\s10_7 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} MSIE\s6\.0 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} iPhone\sOS\s3_3 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Android\s4 [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Firefox\/3\.8 [NC]
RewriteRule ^.* - [F,L]

# Block locale-style User-Agents like en-US)
RewriteCond %{HTTP_USER_AGENT} \b[a-z]{2,3}-[A-Z]{2}\) [NC]
RewriteRule ^.* - [F,L]

# Block POST requests to xmlrpc.php
RewriteCond %{REQUEST_METHOD} POST [NC]
RewriteCond %{REQUEST_URI} xmlrpc\.php [NC]
RewriteRule ^.* - [F,L]

#Disallow GPT bot
RewriteCond %{HTTP_USER_AGENT} GPTBot [NC]
RewriteRule ^.* - [F,L]

</IfModule>




# BEGIN LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule .* - [E=Cache-Control:no-autoflush]
RewriteRule litespeed/debug/.*\.log$ - [F,L]
RewriteRule \.litespeed_conf\.dat - [F,L]

### marker ASYNC start ###
RewriteCond %{REQUEST_URI} /wp-admin/admin-ajax\.php
RewriteCond %{QUERY_STRING} action=async_litespeed
RewriteRule .* - [E=noabort:1]
### marker ASYNC end ###

### marker DROPQS start ###
CacheKeyModify -qs:fbclid
CacheKeyModify -qs:gclid
CacheKeyModify -qs:utm*
CacheKeyModify -qs:_ga
### marker DROPQS end ###

</IfModule>
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END LSCACHE
# BEGIN NON_LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
### marker BROWSER CACHE start ###
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType application/pdf A31557600
ExpiresByType image/x-icon A31557600
ExpiresByType image/vnd.microsoft.icon A31557600
ExpiresByType image/svg+xml A31557600

ExpiresByType image/jpg A31557600
ExpiresByType image/jpeg A31557600
ExpiresByType image/png A31557600
ExpiresByType image/gif A31557600
ExpiresByType image/webp A31557600
ExpiresByType image/avif A31557600

ExpiresByType video/ogg A31557600
ExpiresByType audio/ogg A31557600
ExpiresByType video/mp4 A31557600
ExpiresByType video/webm A31557600

ExpiresByType text/css A31557600
ExpiresByType text/javascript A31557600
ExpiresByType application/javascript A31557600
ExpiresByType application/x-javascript A31557600

ExpiresByType application/x-font-ttf A31557600
ExpiresByType application/x-font-woff A31557600
ExpiresByType application/font-woff A31557600
ExpiresByType application/font-woff2 A31557600
ExpiresByType application/vnd.ms-fontobject A31557600
ExpiresByType font/ttf A31557600
ExpiresByType font/otf A31557600
ExpiresByType font/woff A31557600
ExpiresByType font/woff2 A31557600

</IfModule>
### marker BROWSER CACHE end ###

## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END NON_LSCACHE
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


#Begin Really Simple Security
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
</IfModule>

#End Really Simple Security
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress