range filter

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

range filter

Post by shaqa »

i was trying to find a sample code to filter ip/block ip in 2 range ussing $_SERVER['REMOTE_ADDR']) filter option?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: range filter

Post by requinix »

Do it in the web server, not PHP.
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: range filter

Post by shaqa »

i found how to filter using php i have another question.
currently im redirecting to another location if ip is in blacklist, iwas trying now to find a way to stay in NULL if ip is in list,

Code: Select all

die(header("Location: ".$blocked_redirect));
does any one can modify code above to syaing in NULL or standbye or how can i say in php language.
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: range filter

Post by Apollo »

Exactly what do you mean with 'stay in NULL' ?
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: range filter

Post by shaqa »

doing nothing, disabling everything.loding nothing. stoping everything.
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: range filter

Post by Apollo »

Code: Select all

exit;
will do the trick.
shaqa
Forum Commoner
Posts: 62
Joined: Mon Aug 13, 2007 9:11 am

Re: range filter

Post by shaqa »

Apollo wrote:

Code: Select all

exit;
will do the trick.
thank you
Post Reply