I need to block a link just inside a server, how would it be with HTACCESS? If there is any way. Thank you.
I need to block a link just inside a server, how would it be with HTACCESS? If there is any way. Thank you.
Instead of blocking, I think the ideal would be to redirect. If the link is accessed, it directs you to another page:
# MAINTENANCE-PAGE REDIRECT
<ifModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^123.456.789.000
RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC]
RewriteCond %{REQUEST_URI} !.(jpe?g?|png|gif) [NC]
RewriteRule .* /maintenance.html [R=302,L]
</ifModule>