referrer

Referrer policy hide the referrer of self-signed certificates

纵然是瞬间 提交于 2019-12-02 06:54:36
问题 I can't seem to get the referrer on a 3rd party XHR request to a development server with a self-signed certificate. After complying to chrome's use of SAN instead of CN and registering my self-signed localhost certificate, I got the green dot for this request in Dev Tools security panel, but I also get the following: This request does not comply with Chrome's Certificate Transparency policy. I've tried to use Chrome Group Policies to disable it, but it did not work. Have anyone else stumbled

HTTP Referrer Gotchas?

回眸只為那壹抹淺笑 提交于 2019-12-02 01:49:19
问题 I need to ensure that my webpage is always within an iframe owned by a 3rd party. This third party refers to our landing page using src="../index.php". Now my question is, if I make use of referrer to ensure that the page was requested by either myself or from the third party and if not force a reload of the 3rd party site, are there any big gotchas I should be aware of? For example, are there certain common browsers that don't follow the referrer rules? Thank you. 回答1: Referrers are not

How to block referral traffic from multiple referrers and subdomains in .htaccess file?

给你一囗甜甜゛ 提交于 2019-12-01 21:26:48
问题 I'm seeing thousands of referrals coming from Russia and China every month from the domains below, I've tried adding the code below to my .htaccess file, and then testing it from another domain I own, but I don't appear to be getting the 403 Forbidden message I'm expecting to get. What am I missing? RewriteCond %{HTTP_REFERER} ^(www\.)?([a-z0-9-]+)\.social-buttons\.com$ [NC] RewriteCond %{HTTP_REFERER} social-buttons\.com [NC] RewriteCond %{HTTP_REFERER} googlsucks\.com [NC] RewriteCond %

Getting the referrer URL in php ( including parameters )

て烟熏妆下的殇ゞ 提交于 2019-12-01 20:45:09
Are there any HTTP Headers I could use to grab the entire referrer URL using a webserver/server-side scripting? Including query string, et cetera? You should be able to grab it from the $_SERVER['HTTP_REFERER'] variable. To add to Chacha's point, I don't know if you want to capture the client side hash part of the referrer URL (sometimes, you do). I.e. if the client came from " http://www.domain.com?x=3#y=5 ", the $_SERVER['HTTP_REFERER'] will only contain " http://www.domain.com?x=3 ", and the hash part won't be sent up to the server. If you want to capture that hash part (officially called

How to block referral traffic from multiple referrers and subdomains in .htaccess file?

坚强是说给别人听的谎言 提交于 2019-12-01 19:29:54
I'm seeing thousands of referrals coming from Russia and China every month from the domains below, I've tried adding the code below to my .htaccess file, and then testing it from another domain I own, but I don't appear to be getting the 403 Forbidden message I'm expecting to get. What am I missing? RewriteCond %{HTTP_REFERER} ^(www\.)?([a-z0-9-]+)\.social-buttons\.com$ [NC] RewriteCond %{HTTP_REFERER} social-buttons\.com [NC] RewriteCond %{HTTP_REFERER} googlsucks\.com [NC] RewriteCond %{HTTP_REFERER} 4webmasters\.org [NC] RewriteCond %{HTTP_REFERER} aliexpress\.com [NC] RewriteCond %{HTTP

Javascript document.referrer with full querystring

懵懂的女人 提交于 2019-12-01 18:25:09
I am trying to get the full referring url to a page via javascript. So far the closet I have come is var lastUrl = document.referrer; This does not include the query attached to the url. var lastUrl = document.URL; returns the current URL with the querystring intact. Is there anyway of easily obtaining the referring url along with the referring query. You cant. You can navigate user to previous page with window.history.back(); but you will not know what url it was. You can get only this: document.referrer i know, it's not full query with url, but it's referrer. P.s. Would you like, that any

Get HTTP Referrer on Redirection

馋奶兔 提交于 2019-12-01 17:13:49
How can you get the HTTP Referrer when redirected from another website, not when they click on a link since it would work for $_SERVER['HTTP_REFERER'] , but it doesn't work when a user has been redirected a website and the referrer would be empty. What will be the method to get the referrer? How can you get the HTTP Referrer when redirected from another website You can't. If the redirection takes place under your control, you can add the original referer as a parameter, but if the external redirector doesn't do that, you have no way to get hold of the information. An example of how I did it.

Allow login to website only if request comes from another specific website

别说谁变了你拦得住时间么 提交于 2019-12-01 08:07:57
问题 I have a PHP/MySQL website (website 1) that has a login system that only asks for a PIN code (just a long numeric string). A user has 2 ways of login in with this code: Going to the website 1 login page and enter the code in a typical login form Clicking in website 2 on a link that carries his PIN code as a GET value. The link has the format http://myURL.com/login.php?pin=123456789. That just calls a function that receives the PIN as a parameter and processes the login. Website 2 is located

PHP HTTP Referrer

让人想犯罪 __ 提交于 2019-11-30 19:32:23
I have a page which accepts POSTs from a remote site. I would like to detect the domain that these POSTs are coming from. I realize that it can be spoofed but it is better than nothing. I have tried accessing the HTTP_REFERER variable but it just returns null. The page accepts POSTs from sources like PayPal (instant payment notifications) and other payment gateways. How can I get the referring call? You spelled Referer correctly. It should be: $_SERVER['HTTP_REFERER'] $_SERVER['HTTP_REFERER'] with a single R, try var_dump($_SERVER) for more info. You are right that the referrer is easy to

Android App A wants to track Google Play referral data for Android App B installation

大憨熊 提交于 2019-11-30 05:03:51
Let's say I have an Android App A that is installed in the user's device and I have an AppWidget with my App where we let other Android developers publish their App promotion ads on a Cost Per Install basis. So we need to track if App B is being installed on the user's device through App A's referral. Let's also assume Android App B has its advertisement running on Android App A's widget and the link through which we redirect App A's users to App B's user to Google Play is with all referrer data. The URL looks like this (as recommended here - https://play.google.com/store/apps/details?id=com