referer

How to allow iframe embedding only for whitelisted websites?

会有一股神秘感。 提交于 2020-06-25 10:13:34
问题 I've a form that I'd like to embed in a website, which is on my whitelist. Other websites, that try to embed it, should get only an error page. <iframe src="https://domain.tld/getForm.php?embed=1&formId=123456"></iframe> I was hoping that I could use $_SERVER['HTTP_REFERER'] in getForm.php to check the embeding website, but it's not working. Does anyone know a best practise or any workaround? Thanks in advance! 回答1: Most browsers will support the X-Frame-Options header. This header will

How to redirect traffic that comes from certain domains, to a new url

£可爱£侵袭症+ 提交于 2020-02-06 08:34:49
问题 I need to redirect traffic for all the visitors coming from a bunch of domains, but they all have the same page. So all referrers like this: hxxp://domain1.com/search.php hxxp://domain2.com/search.php hxxp://domain3.com/search.php So when these visitors come to my page, they will be redirected through another url, however all other referring visitors will go to the site. Ideas? 回答1: In your .htaccess file, assuming YourNewDestination.com is the desired destination: RewriteEngine on

How to get Google Play referer in an Android application

删除回忆录丶 提交于 2020-01-23 06:50:53
问题 We are developping an Android application. And we want to track our compaigns. Basically, we want to know from where our users arrives to Google play, by putting a word in the Google Play URL with our parteners and retrieve that word in the application and then send it to our server. We have already installed Google Analytics to our application, we are able to track what the user does in the application on the Google statistics board. But how can we use it to achieve what we really want ? We

Google Analytics, Install Tracking android

六月ゝ 毕业季﹏ 提交于 2020-01-12 20:41:51
问题 I want track install referer for my application using google analytics. I don't want use the Tracking Pageviews and Events feature, only install. So I added the sdk jar in my app, add these lines to the manifest : <receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> And publish the app. But how can see the stats ? I never entered my UA

Google Analytics, Install Tracking android

浪尽此生 提交于 2020-01-12 20:41:10
问题 I want track install referer for my application using google analytics. I don't want use the Tracking Pageviews and Events feature, only install. So I added the sdk jar in my app, add these lines to the manifest : <receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> And publish the app. But how can see the stats ? I never entered my UA

Google Analytics, Install Tracking android

断了今生、忘了曾经 提交于 2020-01-12 20:40:59
问题 I want track install referer for my application using google analytics. I don't want use the Tracking Pageviews and Events feature, only install. So I added the sdk jar in my app, add these lines to the manifest : <receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true"> <intent-filter> <action android:name="com.android.vending.INSTALL_REFERRER" /> </intent-filter> </receiver> And publish the app. But how can see the stats ? I never entered my UA

HTTP Referrer and IE7 and IE8

扶醉桌前 提交于 2019-12-23 08:36:40
问题 Hi i've tried the following to find the referrer in MSIE / IE7 and IE8 but its returning blank each time; PHP: <? echo $_SERVER['HTTP_REFERER']; ?> JAVASCRIPT: document.write('Thanks for visiting from ' + document.referrer); Does any know what the issue could be I'm referering using document.location from a page on another domain and work fine with all other browsers minus MSIE. Any help would be great! 回答1: The HTTP Referer header is not required by the HTTP Protocol : It is only sent as an