How do i set referer in an URL?

Is it possible to set the header referer in an http style URL?

A referrer URL is placed by the browser (or other http client) into the HTTP rquest. It is part of the HTTP header. The Referrer request header is designed by with the string "Referrer: " and is read by the server in the same manner as the other header data in the HTTPS request.
There is another format for referrer information that goes into the URL as a parameter. This could take any form you wish, as long as the server being passed that URL param understands it. If you have a custom server or a JSP (or PHP, etc.), the referrer passed in as part of the URL will be read in the same manner any other parameter is read from the URL.
For example:http://pelosi.communists.gov/?ref=feinsteinHere we have added a "ref" parameter to the URL and the value is "feinstein". This might suggest to the server (which has to be smart enough) that the page that refer the browser to pelosi.communists.gov was feinstein.communists.gov. In this case the default page (e.g. index.html) would actually be a JSP or some custom server code or logging facility.

Similar Messages

  • How do I set up a vanity URL?

    Hi all,
    Please forgive me if this is an obvious question but I'm a newbie to BC.
    I have a new site set up on BC and need to set up a vanity URL. i.e. we need to put on printed material www.websitename.com/events
    Does anyone know where I can set this up in BC to direct to a particular page?
    Many thanks,
    Tom

    See this URL: Getting started

  • How do I set the ammount of URL's that will show when you click the drop down bar?

    I remember before I was able to set a certain amount of URL's that would show in the drop down menu. before I had 10 set and then I downloaded an add on and now it's only 4. I disabled that add on and it's still only 4.

    If you have the FastestFox extension (Tools > Add-ons > Extensions) then see:
    Location bar 4 websites: FastestFox Options > General, uncheck "Enhance Awesomebar"
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 10.0 r45
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • How can I set FireFox to print URLs and Dates on printed pages

    I expected this function to be listed in "Options" but....
    Or does this happen inherently?
    Thanks, Martila

    File > Page Setup > Margins & Headers/Footers tab<br />
    See: http://support.mozilla.com/kn/kb/Printing+a+web+page#Margins_and_Header_Footer
    You need to update your plug-ins. It is important to keep them updated due to continuing security fixes and improvements in those plug-ins:
    * Adobe PDF Plug-In For Firefox and Netscape 8.2.3
    * Java Plug-in 1.6.0_07 for Netscape Navigator
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use Firefox to download and SAVE the installer to your hard drive from the link in the article below
    #**On the Adobe page, un-check any extra items (i.e. Free McAfee® Security Scan Plus) then click Download button
    #**If you see message just under tabs, DO NOT click the Allow button, instead click below that where it says "click here to download".
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link and more information</u>''': https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    #*After the installation, start Firefox and check your version again.
    #'''Update Java:''' https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #*NOTE: Firefox 3.6 and above requires Java 1.6.0.10 or higher; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6

  • How to set the new tab URL?

    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How do I set the new tab URL? When I click on a new tab, this does not open my home page URL.
    == Firefox version
    ==
    3.6.6
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-Logitech Device Detection
    *Office Plugin for Netscape Navigator
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
    *Default Plug-in
    *Provides additional functionality on Facebook. See our web site for details.
    *Shockwave Flash 10.0 r45
    *iTunes Detector Plug-in
    *4.0.50524.0
    *Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    *DRM Netscape Network Object
    *Npdsplay dll
    *DRM Store Netscape Plugin

    Middle-click the Home button instead.
    Or just install https://addons.mozilla.org/en-US/firefox/addon/777/

  • How to set the "Podcast Website" URL?

    I am referring to the link that appears in the bottom left corner of itunes:
    It currently links to our beta website, which is still under construction, but I want it to link to our live website. In a month or so, we'll be ready to link to the new site, but not yet!
    Here's the podcast link for reference: https://itunes.apple.com/us/podcast/dharma-ocean/id587166784?mt=2
    Any ideas on how I can set this link? Thanks in advance!

    Please always post the feed URL when you have a question as well as the iTunes Store URL. For reference, your feed is at
    http://feeds.feedburner.com/dharmaocean
    The website link is carried in the 'link' tag. You have created your feed in WordPress and Blubrry PowerPress and one or other must provide a field where you can enter the URL: it's there that you will need to change it.

  • How can I set time-out while accessing a url using URL object?

    Hi
    I'm trying to get the content of a URL using the following code. How can I set timeout
    (example, 10 secs), if the webserver takes a while to respond.?
    BufferedReader inbuf=null;
    URL url=null;
    try {      
         String urlString="http://host-machine/sms/index.jsp";          
         url = new URL(urlString);
         inbuf = new BufferedReader(new InputStreamReader(url.openStream()));
         String inputLine;
         String LongString="";
    while ( (inputLine=inbuf.readLine()) != null)
              LongString=LongString+inputLine;
              retString=LongString;          
              inbuf.close();
         catch (Exception e) {System.out.println(e)}
    Thanks a lot for your kind help
    Regards
    Kandasamy

    If you're using Java 5, see this thread (reply 10)
    http://forum.java.sun.com/thread.jspa?forumID=31&threadID=576157

  • How do I set up Firefox to remember urls when closing?

    How do I set up Firefox to remember urls when closing?

    Sorry, Right we don't have that option.
    We have only clearing the cookies and history from the Settings button.

  • How could I set the proxy settings for just some URLs and not for all?

    Hello,
    I am using HttpURLConnection to establish a HTTP connection . The connection pass through a proxy, and it requires security.
    I know that I can set the proxy settings in the system properties, and this works perfect.
    But I don't want to set the proxy settings in the system properties, because this proxy settings will be for ALL the URLs, and I just want for a few URLs.
    How could I set the proxy settings for just some URLs and not for all?
    Thanks

    java.net.URL.openConnection(java.net.Proxy proxy)
    @since 1.5

  • How can i set my own default page when i enter my url

    whenever i key in my url, the index.html appears... how can i set my own default page instead?? thank u

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <welcome-fiile-list>
    <welcome-file>over.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    please see the above.
    i have saved my jsp files in the root dir of webapps. in c:/tomcat/webapps/root/web_inf/web.xml , the content of this web.xml is as shown above.... but it still dont work .... how i can i rectify this problem.
    really thanks a lot

  • I have a pop up which I can't get rid of which states: "There is no application set to open the URL ximadpzl://save_ximad_token----/"

    I can't get rid of a message which keeps popping up which says:
    There is no application set to open the URL ximadpzl://save_ximad_token/(etc)
    I have no idea to what they are referring and I can find no application which satisfy this requirement. How do I get rid of this message? It won't go away. I have tried turning off the computer, closing Safari, etc.

    All of these suggestions (delete caches, restart, terminal commands, etc) do nothing to actually LOCATE the problem. They are just standard purging processes, and they have all failed to achieve resolution.  And it is NOT Little Snitch either (tried turning that off and nothing changed).  All these forums on this matter have been speculative and useless.
    Ladies and Gents... I have found and isolated the ACTUAL PROBLEM.  It is a Safari Extension that is doing it... specifically "VideoCatcher 5.3.8" which for me was installed with MovieSherlock.  The extension adds the ability to download YouTube movies directly from Safari (by showing a small download button next to any embedded movie). When I remove that extension, all the annoying pop-ups go away.
    MovieSherlock is not the only utility that does this however. There are several YouTube downloaders out there that ALL install an extension that detects YouTube videos on the page. I bet my hat that many (if not all) of you who are experiencing this pop-up issue... have installed one of those downloader utilities.
    So, the solution is simple: disable that extension. If you need to download a YouTube video from a page, either temporarily enable that extension again as needed, or leave the Safari integration disabled and launch the actual utility itself and enter the URL into it for your download.
    I would expect that MovieSherlock and the other YouTube downloading utilities will need to update their extensions (soon?) to deal with Yosemite's new browser script management.
    PROBLEM SOLVED.

  • Set "Referer" when loading an Image through Toolkit

    To load an Image using an HttpURLConnection, I use the abstract java.awt.Toolkit.getImage(URL url) method, which is implemented by sun.awt.windows.WToolkit. This method uses the HttpURLConnection to load the Image.
    The problem I have, is that I don't know how I can set the HTTP "Referer" request header. There is a method in the HttpURLConnection called setRequestProperty(String key, String value), which I could use, but I can't reach the HttpURLConnection being used to load the Image.
    I would consider another way to load Images, but that would mean quite a bit of refactoring. I would prefer not to use Reflection, though.

    I did look at the HttpsURLConnection (of which we also have our own implementation), but that still doesn't solve the problem, unfortunately.
    Is there maybe another way to load an image from an HttpURLConnection or HttpsURLConnection? If there's a way that I can provide or access the connection being used and still get an Image object, I would be a happy man!

  • In Pages 5, Maverick, How do I stop automatic conversation of URLs to hyperlinks and seeing them underlined

    There used to be a preference setting in Pages.  Now it seems gone in Pages 5.   So how do I stop automatic conversation of URLs to hyperlinks and seeing them underlined in text.  Sometimes I want it, but not always.

    The preference setting to turn off links is gone. When you enter content that triggers link detection, a link character style gets applied. Right-click on the link, choose Edit Link from the menu, and then Remove.
    To prevent Pages from automatically detecting links, visit Edit > Substitutions > and deselect Smart Links.

  • How do I set up a filter to stop relayed mail?

    How do I set up a filter to stop relayed mail?
    Unsolicited Bulk E-mail (UBE) is electronic mail sent to large numbers
    of recipients without their knowledge or consent, usually advertising commercial
    products or services. It is the electronic equivalent of paper "junk
    mail", and is commonly referred to as Spam.
    <P>UBE is usually just a nuisance, but the volume of UBE received at a
    certain site can at times become so onerous that business-critical functions
    are affected. This is especially true when UBE is used maliciously
    to produce a denial of service attack, where a mail server is inundated
    with UBE and crashes because of the load. Another common UBE problem
    is when a mail server is used as a relay for UBE, so that a particular
    server spends all its time routing e-mail that isn't destined for its
    users. Some ISPs have reported that their mail servers have been
    hard coded into certain spam programs, so that they are constantly being
    used as a relay. Not only does this slow down their mail service
    locally, but sometimes other ISP's will identify the afflicted ISP as a
    source of spam and begin to block messages, legitimate and spam alike,
    coming from that ISP. ISP's often name UBE as their number one problem,
    preventing them from providing fast, reliable service.
    <P>For a full definition of UBE see http://www.imc.org/uce-def.html
    (Unsolicited Bulk Email: Definitions and Problems).
    <P>Messaging Server 3.5 Hosting Edition supports powerful filtering capabilities
    on messages as they are received by the server. Various criteria
    can be applied to incoming messages, including testing on number of recipients,
    sender domain or IP address, messages being relayed, and more. Messages
    can then be bounced, dropped, or reviewed by an administrator before being
    delivered. Providers can filter out unwanted mail at the source or block
    a third party from using their messaging server for relaying email.
    <P><B>UBE Filters Functionality Overview</B>
    <P>The UBE filter is a plugin for Netscape Messaging Server 3.5. It works
    by examining all incoming mail before it is routed throughout the system
    (to users mailboxes or to other email servers). The UBE filter uses a set
    of rules (also known as filters) to decide what to do with each piece of
    mail. The filters are used to trap specified types of mail.
    Mail that is trapped can be rejected, forwarded to a specific mailbox (e.g.,
    the postmaster), deleted, or altered in some way. Mail that "passes"
    all the filters continues on its normal course.
    <P>Filters can be set up two ways, either using the straight forward Graphical
    User Interface (GUI) or by setting up the filters directly in the filter.cfg
    file. Generally, one would use the GUI interface for simple, one
    line filters. To set up more complicated, multi-part filters, editing
    the <I>filter.cfg</I> file directly would be faster. Both methods
    are accessed via the Messaging Server Admin tool, under Plug-ins.
    The following discussion gives some high level examples of how to set up
    simple filters using the GUI and via the <I>filter.cfg</I> file.
    For detailed information on how to set up and configure the UBE Filter
    plug-in, see chapter 5 of the online help, or http://home.netscape.com/eng/Messaging/guide35/ch5.htm#Controlling
    unsolicited bulk email (UBE).
    <P><B>Setting Up UBE Filters with the GUI</B>
    <P>The following screen shot shows a simple UBE filter being set up using
    the UBE GUI. What is being set up is a filter to check all incoming
    messages to see if they come from a domain that has been a regular source
    of UBE. In this case, the name of the offending domain is "spammer.com".
    So, each message that comes in has its "From" field checked to see if
    it is from "spammer.com". If it is, the action is REJECT, meaning
    the message is bounced back to the sender, with the appended message "I
    don't accept mail from spammer.com".
    <P>
    <BR>
    <P>Any field in the message can be examined, with some of the most popular
    including the Subject, To, and Cc fields. Any regular expression
    can be placed into the Value field, thus allowing the filter to check for
    various conditions, including containment of a particular phrase (e.g.
    Subject includes "make money"), or number of recipients (e.g., if greater
    than 100, REJECT). For more information on how to write regular expressions,
    see http://home.netscape.com/eng/Messaging/guide35/ch5.htm#Controlling
    unsolicited bulk email (UBE)
    <P>There are a number of actions that can be taken on a trapped message.
    The most common are forwarding to a "watchdog" account such as the postmaster,
    rejection, and deletion. But, in addition, programs such as virus
    checking can be run on a message to trap infected messages.
    <P><B>Setting Up UBE Filters by editing the <I>filter.cfg</I> file</B>
    <P>In the above example, the filter that was set up was converted to a
    short filter script that looked as follows:
    <P>Channel-From ".*@spammer.com" REJECT
    "I don't accept mail from spammer.com"
    <P>This can also be directly entered into the <I>filter.cfg</I> file by
    choosing the option "Edit Config File" from the UBE Page. This becomes
    interesting for more complicated filters that require more than one filter
    line. The following example shows a set of filters that were set
    up to check for various conditions. For example, the fifth
    and sixth line down is a filter that checks messages for viruses.
    <P>
    <BR>
    <P><B>Using the UBE Filter for Anti-Relay</B>
    <BR>
    <P>One of the most requested needs of the new UBE filters supported in
    Messaging Server 3.5 is to provide "anti-relay", i.e., to stop UBE which
    is from an outside domain and destined for another outside domain.
    In these cases, the mail is usually UBE and is relaying to hide the source
    of the original spammer.
    <P>There are two possible scenarios for anti-relay. One is where
    there is a separate machine outside the firewall that checks for e-mail
    for its domain. The other scenario is when there is only one machine
    handling both internal and external traffic.
    <P><I>Scenario One: Separate machines used for internal and external
    mail</I>
    <P>Outside of the firewall are mail servers that handle all incoming mail
    from the internet. Internal users connect to mail servers inside
    of the fire wall. The scenario looks like this:
    <BR>
    <P>What we want to allow is users 1 and 2 (U1 and U2) to send mail anywhere
    but X1 and X2 should only be allowed to send mail to our servers.
    <P>Solution:
    <P>On the External Mail Server create a filter script that checks the Channel-to
    header for domains that are internal to us. Allow these through and
    reject all other mail. E.g., the filters would look as follows:
    <BR>
    <UL># if the mail is bound for domain1 or domain2 then exit the script
    (and allow the mail to continue)
    <BR>Channel-To "domain1.com" EXIT
    <BR>Channel-To "domain2.com" EXIT
    <BR># otherwise reject it outright ($ANY means any header and .* means
    it has any text)
    <BR>$ANY ".*"
    REJECT "This machine only accepts mail bound for domain1.com or domain2.com"</UL>
    We don't need to do anything on the internal server since only our users
    can get to it (because of the firewall) and we want to allow them to send
    and receive any and all mail.
    <BR>
    <P><I>Scenario 2: Single machine used for internal and external mail</I>
    <P>In this scenario the same machine is used for both internal and external
    connections. The problem we face here is that we need to allow the
    local users to send mail outside our domains but not allow external users
    to do the same. Note: This set up is not generally recommended, since it
    makes the Messaging Server open to external attacks.
    <BR>
    <P>Here, we want to allow U1, U2 and U3 to send anywhere and X1 and X2
    to send to domain1 or domain2 only.
    <P>Solution:
    <P>The solution in this case is to put the same script as scenario 1 on
    the server but pre-pend it with lines that check for a connection from
    the internal domains. If the connection is from our users it must
    be from certain IP addresses, say 128.128.128.* or 128.128.129.*, so we
    look for that. If it's not from one of these two IP addresses, then
    it must be from outside and we apply the same logic as in scenario 1.
    <BR>
    <UL>#if the connection is from our internal domains then exit the script
    (and allow the mail to continue)
    <BR>Host-From "128\.128\.128\." EXIT
    <BR>Host-From "128\.128\.129\." EXIT
    <BR># if the mail is bound for domain1 or domain2 then exit the script
    (and allow the mail to continue)
    <BR>Channel-To "domain1.com" EXIT
    <BR>Channel-To "domain2.com" EXIT
    <BR># otherwise reject it outright ($ANY means any header and .* means
    has any text)
    <BR>$ANY ".*" REJECT "This machine only accepts mail bound for domain1.com
    or domain2.com"</UL>

    I agree anti-relay can be using UBE feature. However, there is serious problem in reject the spam mail. My nms is using UBE feature to stop spam mail. According to the work flow of the UBE, the mail is received by nms completely and UBE is going to invesgate the mail address. Although UBE can stop the spam mail, the spam mail have a trouble in returning the mail to the sender. The reason is the sender address is usually not existed in the world. That will cause a lot of mail waiting in the mail queue.
    In my experience, do not use UBE for anti-relay.

  • How can I set up 2 email accounts in Mail

    It's me again.
    I'm trying to set up Mail 2.1.3. in 10.4.11. I have 2 email accounts. I can enter one just fine but it won't take another. When I try, it says that I "already have a POP account". How do I set up 2 email accounts? I see where I can enter the 2 email addresses by separating them by a comma. But the 2 addresses have different passwords and the password box takes only one password at a time. Any ideas?

    It's hard for me to tell by what has been written so far, but it may be referring to what you are entering for the account description. That is, in Mail Prefs > Accounts > Acct Info, for each account it has several entries: Acct Type (that you can't change), Description, email address, full name. If the first account's description is POP, then make the second account's description POP2. I use terms like, "home", "work", and "school" for my accounts' descriptions.
    If this is not what is going on, please write down every step you do, and every entry you make, as you try to configure your second email account and post it back here. Naturally, do NOT disclose your actual email address(es) or mail account login name or its password to us here.

Maybe you are looking for