# php -- BEGIN cPanel-generated handler, do not edit

# Set the “ea-php82” package as the default “PHP” programming language.

<IfModule mime_module>
    AddHandler application/x-httpd-ea-php82___lsphp .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# Disable directory listing

Options -Indexes

# Default homepage files

DirectoryIndex index.html index.php

# Enable rewrite engine

RewriteEngine On

# -----------------------------------------

# PROTECT visitor.php & logger.php FROM BOTS

# -----------------------------------------

<FilesMatch "^(visitor|logger).php$">

```
# Block bad bots by user agent
RewriteCond %{HTTP_USER_AGENT} (curl|python|wget|libwww|httpclient|bot|spider|crawler) [NC]
RewriteRule .* - [F,L]

# Only allow POST requests
RewriteCond %{REQUEST_METHOD} !POST
RewriteRule .* - [F,L]
```

</FilesMatch>
