Reply to Re: Prevent page access outside website

Your name:

Reply:


Posted by Jerry Stuckle on 10/06/07 14:43

H@C0 wrote:
> Hi.
> I have a php webside with a guestbook and I want access to the guestbook
> only via the homepage.
> How can I modify the index.php of the guestbook to prevent access from
> outside the website?
> Any hints ?
>
> Regards, Hans
>

You can't reliably. And whatever you do will make it harder for valid
users.

For instance, you could set a session variable in your home page, then
clear it in any other page on your site. Check for it in your guest
book page. If it's not set, don't allow the page to be loaded.

But it also means search engines won't be able to access your guest book.

The real question is - what problem are you trying to solve? If it's
guest book spam, this may help some, but won't stop it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация