• Background
    • Awards
    • Biography
    • Resume
  • Blog
    • Articles
    • Cookie Policy
    • Galleries
      • Photo Gallery
      • Video Gallery
    • Glossary
  • Contact
    • Contact
    • Social Networks
  • IT
    • Downloads
      • Windows
    • Equipment
    • Hardware
    • Software
    • Testimonial
    • Information Technology
  • Projects
    • Business Projects
    • HackBook Projects
    • Hackintosh 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 Pinterest profileMy YouTube channel

Stephan Pringle

Chief Executive Officer at Sipylus
About The Author: Stephan Pringle is an Information Technology 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 Pinterest profileMy YouTube channel

Latest posts by Stephan Pringle (see all)

  • The New Microsoft Edge is Old - Friday, January 15, 2021

Related posts:

  1. Display Your Visitor’s Location
  2. WHM Login with Custom Logo
  3. cPanel Login with Custom Logo
  4. Webmail Login with Custom Logo
  5. Say Farewell to Orkut
  6. Invalid License File
  7. Checking Email on Verizon’s Website
  8. Block Traffic from URLOpener.com
  9. IFrame Killer
  10. What’s My Email Address?
  11. Email Address in Online Resume
  12. Spoofed: UPS Service Invoice
  13. Access Websites on a Shared IP Address
  14. New WordPress Site
  15. You Are Over Your Quota!
  16. Confirm Successful Logins by ROOT
  17. Compress Multiple Files for Emailing
  18. SWEBot/1.0
  19. Traffic Estimations
  20. Spoofed: Please Verify the Email Address

Comments are closed.




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

Stephan Pringle

IT Technical Support Specialist

  • Keyword Search

  • Translator

  • Topic Sponsor

I am always working to improve your experience on my website. Part of this involves using cookies to collect anonymous data for statistics and personalization. Learn more