Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
"be consistent"
 
PerlMonks  

Re: please help to exclude my own IP address.

by gman (Friar)
on May 02, 2005 at 14:16 UTC ( [id://453363]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to please help to exclude my own IP address.

how about wrapping it in an if statment.

if($ENV{REMOTE_ADDR} =~ '10.10.0.1') { your code }

Replies are listed 'Best First'.
Re^2: please help to exclude my own IP address.
by gman (Friar) on May 02, 2005 at 14:19 UTC
    Sorry that should be
    if($ENV{REMOTE_ADDR} ne '10.10.0.1') { your code }
      You could also flip the logic and say something like:

      exit if ($ENV{REMOTE_ADDR} =~ '10.10.0.1');
      where exactly should goes this line?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://453363]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.