Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using LWP module

Status
Not open for further replies.

SCelia

Programmer
Feb 27, 2002
82
CA
When you are retrieving web pages with the lwp module is it possible to change the ip address given to those web pages? I know you can set the user agent and the referer but can you set the REMOTE_ADDR variable or go through a proxy or something to mask it? I want to make a script to automate form submissions but it would be kind of pointless should people realize many submissions are coming from the same ip and then either deny access to that ip or send submissions coming from it straight into the trash.

Does this make sense? lol.

Thanks,

Celia
 
No. REMOTE_ADDR is set by the server from the IP packets being sent by the client app (which in your case is your server). There is no header which can modify that value.


What is it you are trying to do, and why are you planning to do it so often you might draw the ire of a server administrator? It sounds to me like you're trying to flood some web server somewhere. ______________________________________________________________________
My God! It's full of stars!
______________________________________________________________________
 
I'm actually just trying to provide an easier way to submit repetitive information to forms but if many people use my program it will look like one person is trying to submit several times - something I want to avoid. So if it cannot be set by a header, is it possible to go through a proxy or something that will allow me to appear to be coming from several different ip addresses? Celia
 
Again, no. All you would do by using a proxy server is make it look like all these inputs are coming from the proxy server's address rather than your server's address.

I wouldn't worry about the IP address thing. Large numbers of people are using the internet via dynamic NAT (or shared NAT, or masquerading, or whatever other terms there are for it). You can have thousands of machines all connecting to the internet while it looks like everything is coming from 1 IP addres. That's because they are all using 1 address -- the external IP address of the firewall or router.

What kind of repetetive inputs are we talking about, and why would anyone care where the data is coming from? ______________________________________________________________________
My God! It's full of stars!
______________________________________________________________________
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top