Skip to content

Instantly share code, notes, and snippets.

View papoms's full-sized avatar

Paul Porzky papoms

View GitHub Profile
@papoms
papoms / fake-referrer.phantom.js
Last active July 1, 2023 23:59
Fake Referrer with Phantomjs
var system = require('system');
// Exit in case of wrong parameter count.
if (system.args.length !== 3) {
console.log('Usage: scriptname targetUrl referrer');
console.log('example: $> phantomjs fake-referrer.phantom.js http://example.com http://referrer.example.com');
phantom.exit();
}
// Set the important pieces