How to pass custom http referrer using curl

HTTP referrer is the URL of the previous webpage from which a link was followed.

We can modify or inject http referral url using curl command.

#curl --referer http://example.com/bot.html http://techies-world.com/

Here we are passing the url "http://example.com/bot.html" as referral url.

This can be used for referrer spoofing.

Leave a Reply

Your email address will not be published. Required fields are marked *