S
S
s1llver2016-10-22 20:58:36
Apache HTTP Server
s1llver, 2016-10-22 20:58:36

How to prevent the execution of a range of files in .htaccess?

There are several files.

exampletext1.php
exampletext2.php
exampletext3.php
exampletext4.php

How to disable reading/execution of all files using .htaccess -
in the name of which there is "exampletext" so that each file does not have to be disabled.
something like this, but not for specific files, but for those in the name of which there is "exampletext"
<Files exampletext.php>
      Order Deny,Allow
      Deny from all
</Files>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
s1llver, 2016-10-23
@s1llver

already found the solution here is the code

<Files "exampletext*">
  Order Deny,Allow
  Deny from all
</Files>

R
romy4, 2016-10-22
@romy4

use FilesMatch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question