Re: URL security...?

From: Date: Thu, 13 Sep 2001 11:53:48 +0000
Subject: Re: URL security...?
Groups: php.general 
Request: Send a blank email to php-general+get-67185@lists.php.net to get a copy of this message
If the page they type on the URL is available it will be displayed. Security is the remit of the web server not (realy) PHP. However what i do is have a is_logged_in function which uses session varable. Something like if ( is_logged_in() ) { ... do stuff .... } esle { display_error( 'sod off, you ant logged in!'); } Better still the is_logged_in in function could display the error message and you would not need the else. To extend this you could implenent user levels. Punter could be 0, Administrater 5 and Superuser 9. You could then pass this torough to the function. So is_logged_in 5 would return true if user was at least of level 5 (allowing levels 5,6,7,8,9 access). For pages for punters wjo must be logged in use is_logged_in(). Regards, Ben "Seb Frost" <seb@raceshoot.com> on 13/09/2001 11:36:54 To: <php-general@lists.php.net> cc: Subject: [PHP] URL security...? ok I know if I have a URL like /images/$fileName then someone could be malicious by using ".." to get to the root directory. What I want to know is, if a URL absolutely starts with /images/ on my website, is there someway that someone can modify the remainder of the path such that it actually goes to a different website? Do you see what I'm saying? cheers, - seb frost -----Original Message----- From: GaM3R [mailto:gamr@outworld.cx] Sent: 13 September 2001 09:39 To: php-general@lists.php.net Subject: [PHP] help!!! Cannot load /usr/local/apache_adserv/libexec/libphp4.so into server: /usr/local/apache_adserv/libexec/libphp4.so: Undefined symbol "mpz_add_ui" . . . configure line of ./configure '--with-apxs=/usr/local/apache_adserv/bin/apxs' '--with-mysql=/usr/local' '--enable-versioning' '--enable-inline-optimization' '--with-gd=/usr/local' '--with-pgsql=/usr/local/pgsql' --enable-apc --with-gmp --with-config-file-p ath=/usr/local/apache_adserv/php.ini Cameron outworld.cx --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#67185) next »