setReferer

scrapeableFile.setReferer( String url ) (professional and enterprise editions only)
Description
Dynamically sets the HTTP header referer for the current scrapeable file. This method must be called before the file is scraped. That is, the script calling this method should be associated with the scrapeable file, and should be invoked "Before file is scraped".
Example
// Sets the value of url as the HTTP header
// referer for the current scrapeable file.
import java.net.URL;

URL url = new URL( "http://www.foo.com/" );
scrapeableFile.setReferer( url );