
#***************************************************************

# Minijobscriptv3

# Copyright 2020-2024 Minijobscript.com

# All rights reserved.

#***************************************************************

RewriteEngine on

RewriteBase /

RewriteRule ^([0-9]+)/?$ /go.php?id=$1 [L]

## Begin - Rewrite rules to block out some common exploits.

# If you experience problems on your site block out the operations listed below

# This attempts to block the most common type of exploit attempts

#

# Block out any script trying to base64_encode data within the URL.

RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]

# Block out any script that includes a <script> tag in URL.

RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]

# Block out any script trying to set a PHP GLOBALS variable via URL.

RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]

# Block out any script trying to modify a _REQUEST variable via URL.

RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

# Return 403 Forbidden header and show the content of the root homepage

RewriteRule .* index.php [F]

#

## End - Rewrite rules to block out some common exploits.

Options -Indexes

#<files "cron.php">

# Order deny,allow

# Deny from all

#</files>

#<files "cron1.php">

# Order deny,allow

# Deny from all

#</files>

<files ".ipn_results.log">

Order deny,allow

Deny from all

</files>

<files ".ipn_skrills.log">

Order deny,allow

Deny from all

</files>

<files ".ipn_stp.log">

Order deny,allow

Deny from all

</files>

<files ".ipnpayza.log">

Order deny,allow

Deny from all

</files>

<files ".ipn_2c0.results.log">

Order deny,allow

Deny from all

</files>

# Use PHP 7 for .php & .html
<FilesMatch "\.(?:php|html)$">
    SetHandler application/x-httpd-alt-php74
</FilesMatch>

# Turn off directory browsing
Options -Indexes
