K
K
kachi882019-08-01 12:02:26
htaccess
kachi88, 2019-08-01 12:02:26

How to prevent navigation from a specific domain in htaccess?

There is an ubuntu server with a web server, there are files for downloading, for example, this address: 11.11.11.11/file/file.exe
Everything is open externally.
I found that the left resource refers to my VPS for downloading these files, I can’t forbid in any way through htaccess to ban transitions from this domain, it just doesn’t work (it has a regular direct link to my VPS there, without third-party services). htaccess itself works 100%

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Siverius, 2019-08-01
@Siverius

RewriteCond %{REMOTE_ADDR} "^bad_ip$"
RewriteRule (.*) good_bye.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question