Hello dear members! I have a question. There is a website, and I want it to be accessible to no one but this ip 178.63.68.137 How to restrict access to them? And it is desirable that the inscription would be: "Have you played enough?" In the hosting panel is not possible to limit access.
2 answers
You can do it through .htaccess ..
Order Allow,Deny Allow from all Deny from 178.63.68.137
The inscription "Played enough?", Of course, will not be in this case ..
You can still try:
SetEnvIf REMOTE_ADDR 178.63.68.137 REDIR="redir" RewriteCond %{REDIR} redir RewriteRule ^/$ /only_for_you.html
If the visitor has an IP address of 178.63.68.137, then only_for_you.html will be opened for him.
|
if ($_SERVER[REMOTE_ADDR] == "xxx.xxx.xxx.xxx"){ exit("Message"); }
ps Minusanul for the lack of attempts.
|