LINK lock with HTACCESS

1

I need to block a link just inside a server, how would it be with HTACCESS? If there is any way. Thank you.

    
asked by anonymous 26.01.2016 / 11:13

1 answer

1

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>

Font

    
26.01.2016 / 12:06