开发者

.htaccess Allowing only the rest of the pages to view

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜