- Joined
- Sep 28, 2007
- Messages
- 64
- Reaction score
- 0
Hey all, I have been on this all day and it's totally got me confused.
Here is a rundown of what I am trying to do:
I have a site, thats the backend of one of my sites, to increase security, I have set it so the IP of $_SERVER['REMOTE_ADDR'] must match the one I have set in the database.
With that explained, I have another site that has a file multiple directories in, that has a script that will log me in using curl_setopt(), set all sessions etc, but I hit the error page because my IP doesn't match the one given.
This page is for when I'm on the move, I can check on my cell and if I need to get into the backend for any of the alerts, I can make my way to the family house to jump on and deal with any issues.
So my question is, is there a way to have curl_setopt() fake the IP in that file so it matches?
I know there are a million other ways to do this, but I also wanted to learn about curl_setopt() so by doing this, I have learnt some new stuff and would like to finish it completely in this way.
I can't seem to find anything that would change the given HTTP values etc.
Any help will be appreciated.
Thanks in advance.
Edit To whoever made the new skin, got to admit, its sexy.
Here is a rundown of what I am trying to do:
I have a site, thats the backend of one of my sites, to increase security, I have set it so the IP of $_SERVER['REMOTE_ADDR'] must match the one I have set in the database.
With that explained, I have another site that has a file multiple directories in, that has a script that will log me in using curl_setopt(), set all sessions etc, but I hit the error page because my IP doesn't match the one given.
This page is for when I'm on the move, I can check on my cell and if I need to get into the backend for any of the alerts, I can make my way to the family house to jump on and deal with any issues.
So my question is, is there a way to have curl_setopt() fake the IP in that file so it matches?
I know there are a million other ways to do this, but I also wanted to learn about curl_setopt() so by doing this, I have learnt some new stuff and would like to finish it completely in this way.
I can't seem to find anything that would change the given HTTP values etc.
Any help will be appreciated.
Thanks in advance.
Edit To whoever made the new skin, got to admit, its sexy.