P
P
pandaa2019-04-17 18:48:51
htaccess
pandaa, 2019-04-17 18:48:51

How to close a website with htaccess?

I need to disable access to all pages on the site, how can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Martovitskiy, 2019-04-17
@pandaa

Deny viewing/launching everything in the folder and subfolders: Deny
access to a specific IP:

order allow deny
allow from all
deny from 000.000.000.000

Allow access only to a specific IP:
order deny allow
deny from all
allow from 000.000.000.000

Close access only to the access.json file:
<Files access.json>
deny from all
</Files>

Close access to multiple files:
<Files ~ "one.file|file.next">
deny from all
</Files>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question