• Background
    • Awards
    • Biography
    • Resume
  • Site
    • Blog
    • Cookie Policy
    • Galleries
      • Photo Gallery
      • Video Gallery
    • Glossary
  • Contact
    • Contact
    • Social Networks
  • IT
    • Downloads
      • Windows
    • Equipment
    • Hardware
    • Software
    • Testimonial
    • Information Technology
  • Projects
    • Business Projects
    • PC Projects
      • Hackintosh Laptop Projects
      • Hackintosh Desktop Projects
    • Website Projects
    • More Projects
  • Service Rates
    • Business Rates
    • Residential Rates

Redirect Visitors by IP Address

Tuesday, April 8, 2003 Articles, Tips Comments Off on Redirect Visitors by IP Address

Add this php script in a php file and save in your old admin login location.

<? $administor = $_SERVER[‘REMOTE_ADDR’];
if (preg_match(“/nnn.nnn.nnn.nnn/”,$administor)) { header(‘Location: http://www.go.in’);
} else { header(‘Location: http://www.go.away’);
}; ?>

When the php file is executed, it will redirect IP’s that do not match.
This is useful if you forgot and typed in the old login location instead.

* Replace nnn.nnn.nnn.nnn with your ip address.

The following two tabs change content below.
  • Bio
  • Latest Posts
facebook-profile-picture
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profileMy YouTube channel

Stephan Pringle

Technology Support Specialist at Sipylus
About The Author: Stephan Pringle is an Information Technology Support Specialist. He covers hardware and software and provides tips for you to troubleshoot and repair issues on your own. In his spare time, he writes articles about the State of New York on his Hackintosh and HackBook and that has helped him to become the top contributor of the New York City section of Yahoo! Answers.
facebook-profile-picture
My Twitter profileMy Facebook profileMy LinkedIn profileMy Instagram profileMy Pinterest profileMy YouTube channel

Latest posts by Stephan Pringle (see all)

  • Importing a PDF File to an Excel File - Saturday, August 19, 2023

Related posts:

  1. ErrorDocument 410
  2. Directory Index Filenames
  3. Avoiding Broken Links
  4. CVE-2014-8770
  5. Protection against DDoS
  6. IFrame Killer
  7. wp-inorms.php
  8. Clear the Terminal or Bash History
  9. cPanel Login with Custom Logo
  10. Login with a Custom Logo
  11. WHM Login with Custom Logo
  12. Webmail Login with Custom Logo
  13. Block the Quora Login Popup
  14. Clean Home Page URL
  15. PHP4
  16. Security Warning in Word
  17. Invalid License File
  18. What’s My Email Address?
  19. Address Book is Not Working
  20. Email Address in Online Resume

Comments are closed.




Copyright © 1990-2023 Stephan Pringle. All rights reserved.

The information contained on this website is for your personal use only.
It may not be reproduced in whole or in part, by any means, for dissemination without our written permission.

Stephan Pringle

Technical Support Specialist

  • Keyword Search

  • Topic Sponsor