pureMango.co.uk

there's nothing about mangos or purity. It's just a name..



If you're interested in learning more about computers, you may want to look info getting a computer degree. Getting an information technology degree will help you to get into the computer science field, and now with online education, getting a degree is easier than ever. You can find great online computer science programs on the web.
sending HTTP headers in PHP. free source code A PHP front end for HTTP.

Allows quick and easy customisation of the following headers:
  • GET/POST info
  • Host
  • Referer
  • Cookie
  • User Agent
  • Basic HTTP Authentication
  • User Agent
  • ... and more!
Features:
Resolves IP>Host/Host>IP
Optionally return either only headers or everything.

source | demo

If you use this tool, I strongly recommend you password protect it, either with .htaccess, or using my generic password protection script

See also Fake Hits Wizard for a similar (commerical) script to boost your site's hits.




 User Comments:

Who: phent
When: August 13th, 2005
Says: This makes me speachless :) Very well done!

Who: Jon
When: August 22nd, 2005
Says: This looks like an amazing script. Not sure the referer works though. I was trying to fake one to http://www.javascript-page.com/referrer.html with no luck.

Any ideas what I'm doing wrong?

---
from u24:
the online demo only allows connections to puremango.co.uk, but if you download the source and run it from your own server, it should be fine.
if you don't have a php server, check out the wamp tutorial for step by step instructions on how to set up your own on windows.

Who: Jon
When: August 25th, 2005
Says: Thanks for your reply. Yeah I downloaded it and tried it out on my local server and also on my website with no success :(

Address: www.javascript-page.com
Hostname: www.javascript-page.com
Port: 80
file to request: /referrer.html

and everything else left blank. Have I missed something out?

Thanks
---
from u24:
ah, well if you want to spoof the referer, you'll need to fill in the referer field!

Who: Brett
When: August 29th, 2005
Says: Beautiful script!

Is there any way this could be modified to actually redirect the browser to the requested page using the input supplied?

In any case, wonderful script. Thanks.
---
from u24:
not really, you could save the page locally and redirect there, but that's not really what you're after.

Who: Paul
When: August 29th, 2005
Says: Is it possible to spoof the IP? Or to use the IP of the website visitor?

In the logs I now see the IP of my server... I want another IP in it. How?

Thanks
---
from u24:
you could use a proxy to hide the IP, but it's very difficult to actually spoof it.

Who: Jon
When: September 1st, 2005
Says: Hi,
Me again. Forgot to say that I was including the referer field!

Is the referer spoof working for everyone else? Could it be my server do you think?

Top script otherwise :)
----
from u24:
very strange; after you've submitted the form, is it showing the referer field in the 'sent headers' part?

Who: Jon
When: September 4th, 2005
Says: Thanks for your reply again. Yes it is showing as sent:

Sent headers to www.javascript-page.com (64.224.110.140):

GET /referrer.html HTTP/1.0
Accept-Encoding:
Host: www.javascript-page.com
Referer: http://www.google.com
Connection: close

Is what I get back. I've also added a bit so it echo's the actual page back which is how I can tell it's not working.

while(!feof($fsock)) {
echo(fgets($fsock));
}

Thanks again, not sure if this is a bug, or it's me spazzing it up :)
---
from u24:
well, if the referer is showing in the 'sent headers' part, then it's definately sending it to the remote site.. but that page doesn't echo the referer anywhere; why do you think it's not sending it?

Who: Jon
When: September 8th, 2005
Says: Hi again u24. The site does echo the referer if there is a "document.referrer" present. If not it doesn't

See result number 1 to see what I mean: http://www.google.co.uk/search?sourceid=navclient&ie=UTF-8&q=javascript%2Dpage%2Ecom+referrer

Thanks for all this. Jon
---
from u24:
yep, but the javascript won't work as the headerSpoof program echoes the actual source code; if you try a page with a server side referer check, it'll work.

Who: email address imagified
When: September 10th, 2005
Says: Very good, just miss the fact that you cant use it to grab files.. you can only get ascii output?
---
from u24:
hmm, good point, I might add an option to receive as file in future.

Who: email address imagified
When: September 15th, 2005
Says: great script! thank you very much!

as you've already said, ip spoofing is difficult and not realized in your script.

do you know any chance to spoof ip with PHP?
or do I have to use a stand-alone program?

best regards, helga

---
from u24:
yep, you'd have to use a separate program. But if you only want to hide your real IP, you can use a proxy server.

Who: email address imagified
When: September 15th, 2005
Says: okok, now I do understand, that spoofing IP is quite difficult. I don't know much about the internet architecture. But found this which might be interessting for some of you:

http://spoofer.csail.mit.edu/#software

have a nice day,
helga
---
from u24:
cheers, that link sounds quite interesting.

Who: SwitchJohnny
When: April 6th, 2007
Says: Has anyone gotten this to work with a redirect yet?
---
from u24:
what do you want it do?

Who: Mighty
When: May 12th, 2007
Says: A User above asked the following:

--------------------------
Is there any way this could be modified to actually redirect the browser to the requested page using the input supplied?
--------------------------

Your answer was to save the page locally and redirect it to the php frontend.
Could you describe this possibility a little more, because thats the way your script would be very useful for me. Maybe there's also an other way to realize it.
Besides you did a great job.

regards,
Mighty
----
from u24:
To be honest, I think what you really want to do is look at phProxy.
If you're really insistent on using this script (I can see there'd be some benefits) then instead of echoing the results to the browser, you could get the PHP to fwrite() the received response and then Header("Location: ....") to the page you fwrote to.

You might also want to look into scanning the received html for links/images/etc and re-write those urls to point back at the spoofer.

Who: email address imagified
When: April 23rd, 2008
Says: Would there be a way to implement this direct into the.htaccess file?

Who: email address imagified
When: May 18th, 2008
Says: Hello I was also searching for spoofing ip because know my serveradres is shown... instead of the visitor..

You say it is difficult .. but I dont matter if it is I just want it :P Maybe you can help because you know a way to do? I hope you can contact me soon
---
from u24:
a proxy would better serve your needs

Who: email address imagified
When: June 12th, 2008
Says: howard! go knock us together another blather website!
---
from u24:
lol, there's something much better in the works ;-)

 Add your comments:
Who / E-Mail:*
Your Comments:*
(php/html will be removed)

Because spammers have targetted me due to my antispam efforts, I'm going to have to ask you to complete this CAPTCHA test before posting.
Learn more about fighting spammers.
 enter text
word above:
If you can't read the word, click here
 
* denotes a required field.
Your email address will be converted to an image to prevent spambots picking it up.
yup, it's a mango.

Scheme:  R G B T