A
A
Alexander Arbuzov2014-02-20 14:23:02
htaccess
Alexander Arbuzov, 2014-02-20 14:23:02

How can I configure via .htaccess to show a certain page to all ip addresses except my current one?

How can I configure via .htaccess to show the tech_work.html page (Technical work on the site) to all ip addresses except my current one?
Option:

RewriteEngine On
RewriteCond %{REMOTE_ADDR} !<мой текущий Ip>
RewriteRule ^(.*)$ tech_work.html [L,QSA]

It cuts me off just like everyone else.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vilos, 2014-02-20
@Vilos

IPTABLES I think will help

K
kir-pas, 2014-02-20
@kir-pas

RewriteEngine On
RewriteCond %{REMOTE_ADDR} !^123\.45\.67\.89$
RewriteCond %{REQUEST_URI} !=/tech_work.html
RewriteRule ^ /tech_work.html [R=301]

T
tosteruser, 2014-02-21
@tosteruser

ErrorDocument 403 /tech_work.html
order deny,allow
deny from all
allow from 192.168.0.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question