Hello, I have a Host on DynDNS.org with the URL <http://onlinestore.tamay-dogan.homelinux.net/u/controller.php> In the Pages I like to check, whether the URL was called from inside my Domain or not. For testing I have added echo $_SERVER['HTTP_REFERER']; but it returns every time http://onlinestore.tamay-dogan.net/u/controller.php which is the local Domain. In my 'apache' Include I have ____( '/home/PUBLIC_HTTP/Configs/vh_/onlinestore.conf' )______________ / | <VirtualHost 192.168.1.69:80> | ServerAdmin linux4michelle@xxxxxxxxxx | DocumentRoot /home/PUBLIC_HTTP/onlinestore/ | | ServerName onlinestore.tamay-dogan.net | ServerAlias onlinestore.tamay-dogan.homelinux.net ... \______________________________________________________________________ But if I look in "Page Info" of Mozilla, it tells me the right Domain. Then I have the same problem with echo $_SERVER['SERVER_NAME']; which tell me every time the "ServerName" but not the public "ServerAlias". WHY ? Does anyone have an example, which I can put at the beginning of my Web-Pages which allow or deny access to the HTML-Page ? I need to protect my php-Scripts, because I have had already a DoS by calling my php-scripts several tenthousandth times. Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Attachment:
signature.pgp
Description: Digital signature