+ Reply to Thread
Results 1 to 4 of 4

Thread: Php IP address redirect

  1. #1
    legoben is offline x10Hosting Member legoben is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    3

    Php IP address redirect

    I want some of my secure pages to be secured by IP address.
    I want each of the IP addresses to be stored on MySQL, which will have a page which writes to it adding new IP addresses.
    The I want all pages within "/secure/" directory to redirect to an error page if invalid adress, or display page if valid.

    Thanks for you help guys

    Sorry if this is too confusing

    Lego Ben

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Php IP address redirect

    It's much easier to do this with .htaccess

    http://www.htaccess-guide.com/index.php?a=6
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    nirajkum is offline x10 Sophmore nirajkum is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    161

    Re: Php IP address redirect

    .htaccess will do it for you .. you can deny IP address and allow IP adress .. but I am not sure are you talking of secure connection https ?

  4. #4
    Chrisisrad is offline x10Hosting Member Chrisisrad is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    23

    Re: Php IP address redirect

    While it would be easier for this person to use .htaccess they may not understand it.
    Because im willing to guess this user wants to document all movement by any given IP.
    Id suggest some class php files.

    If i break any rules dont hate me! Im new! :dunno:

    The files im showing are written by myself.
    Attached Files

+ Reply to Thread

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. Replies: 0
    Last Post: 12-24-2008, 03:59 PM
  3. My 2cents on Ruby vs PHP.
    By jwillia in forum Programming Help
    Replies: 0
    Last Post: 03-15-2008, 11:18 PM
  4. PHP Easter Eggs
    By dragoneye_xp in forum Off Topic
    Replies: 3
    Last Post: 06-14-2006, 05:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers