开发者

.htaccess Allowing only the rest of the pages to view

开发者 https://www.devze.com 2023-01-09 00:45 出处:网络
Hi? How can I allow only a visitor to view only some part of the page an开发者_如何学Cd while my IP(assigned IP) can view all pages.If you are using PHP (as the tag of your question suggests), try inc

Hi? How can I allow only a visitor to view only some part of the page an开发者_如何学Cd while my IP(assigned IP) can view all pages.


If you are using PHP (as the tag of your question suggests), try including the following in your page:

<? if ($_SERVER['REMOTE_ADDR'] == "127.0.0.1") { ?>

[part of page only you can see here]    

<? } ?>

where you replace 127.0.0.1 with your IP.

0

精彩评论

暂无评论...
验证码 换一张
取 消