http-referer

Host of Referer

六眼飞鱼酱① 提交于 2019-12-13 10:30:40
问题 How to find out the Referers host? My Problem is, i wont to check, is user from google adwords or organic search... so i checking refferer, but the refferer ist allways google organix search... if some one have a be´tter idea :) tell it. But I found out, that the HOst is a speacial one! So now I wont to check for Host of the Refferes site. Is there a way to find out the referer is "google Adwords" ? 回答1: Can you explain further? You want to grab the referrer? Just use $_SERVER['HTTP_REFERER']

how can a page redirect users back to previous page if they try to access the page via url?

牧云@^-^@ 提交于 2019-12-12 08:48:52
问题 I have a login page which won't be accessible if user is already logged in. So login page tries to redirect logged in users back to the page where they came from. Redirect works if users click a link to go to a page. Problem is if users are in About page try to access login page via url then the referrer agent won't be set so login page is not redirecting users back to About page, instead it is redirecting back to the base url ( i'm using codeigniter and ion auth library). login page's

cakephp : go to previous page after editing a player

a 夏天 提交于 2019-12-12 04:37:31
问题 I have players in pages. I'm for instance on page 13. Here I click on the edit function to edit a player. Now after the edit I want to get back to that page 13 but It stays at the edit page. edit action : public function admin_edit($id = null) { if (!$this->Player->exists($id)) { throw new NotFoundException(__('Invalid player')); } if ($this->request->is(array('post', 'put'))) { $data = $this->request->data['Player']; if(!$data['player_image']['name']){ unset($data['player_image']); } if (

request.getHeader(“referer”), than back button reload the page

Deadly 提交于 2019-12-12 04:04:24
问题 JSP1 links to JSP2. JSP2 call a servlet that does some stuff and ends with: response.sendRedirect(request.getHeader("referer")); return; At this point I'm back to JSP2. The problem is that pressing the browser back button from there, the page simply reload itself instead of going back to JSP1. This is correct becouse the sendRedirect adds an entry to the history. But I want to go back to JSP1. Any tips? 回答1: You shouldn't rely on the referrer header in controller actions at all for various

Add “referer” to header when using ShellExecute

人走茶凉 提交于 2019-12-12 01:38:35
问题 I'm using ShellExecute to open the user's default browser to a specific web site. I'd like to add a referer field to the URL. Is this possible to do while continuing to use ShellExecute? If not, any other suggestions to get a users default browser to open a URL with referer? 回答1: The referrer is part of the HTTP protocol. ShellExecute opens an app which then processes the URL, by sending an HTTP request. It's that app that specifies the referrer. The very best you could do would be to include

Load external website in iframe but without sending HTTP_REFERER

ぃ、小莉子 提交于 2019-12-11 13:33:41
问题 Is it possible to load an external website in iframe but without sending HTTP_REFERER ? I just don't want be tracked. If it is possible then how and if not then is there any workaround using divs or anything else ? For anchor tag with external link jQuery("a").attr('rel','noreferrer'); is working, but for iframe I've failed to make it work. Is there any script( js or jQuery ) to make it work ? 回答1: Here's a very simple solution. Use this in you document <head> tag and you are good to go :D

S3 bucket policy access conditions

谁都会走 提交于 2019-12-11 11:51:21
问题 I have an s3 bucket policy like this which denies requests if the referer is not listed under { "Sid": "6", "Effect": "Deny", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::my_bucket_name/*", "Condition": { "StringNotLike": { "aws:Referer": [ "http://example1.com/*", "http://example2.com/*", "https://*amazon.com*/*" ] } } } note i tried https://*amazon.com*/*, https://*aws.amazon.com* ,https://*amazon.com*,http://*amazon.com* my problem is that I am not able to get

in what situation does the HTTP_REFERER not work?

穿精又带淫゛_ 提交于 2019-12-11 04:04:13
问题 I have used referrer before in foo.php to decide whether the page iframing foo.php is of a particular URL. (using $_SERVER['HTTP_REFERER'] ) It turned out that most of the time, it worked (about 98% of the time), but it also seemed like some users arrived the page and $_SERVER['HTTP_REFERER'] was not set in foo.php and therefore broke the code. [ update : These user claimed that they followed the usual page flow and didn't use the URL of foo.php all by itself on the browser (that they let it

How do I use cURL & PHP to spoof the referrer?

大城市里の小女人 提交于 2019-12-10 23:33:03
问题 I'm trying to learn cURL with PHP to spoof the referrer to a website. With the following script I expected to accomplish this...but it seems to not work. Any ideas/suggestion where I am going wrong?? Or do you know of any tutorials that could help me figure this out? Thanks! Jessica <?php $host = "http://mysite.com"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $host); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_AUTOREFERER,

Does clicking a link in Gmail send a referer header?

杀马特。学长 韩版系。学妹 提交于 2019-12-10 19:32:05
问题 This is mainly for privacy concerns. If I open up an email on Gmail (or any other email provider) containing a link to a website and I end up clicking on the link, does Gmail send out a referer header? (ie. Will the destination website know that I came from Gmail? And would they know the email address that I was using when I clicked on the link?) Lastly, if they do, is there any way to disable it? 回答1: No, if you use gmail's web interface referrer header won't be set, but destination may