webdevask.com

Menu

  • Home
  • New
  • Add question

html - How to use HTTP_REFERER in PHP

View Original

one text

Solution:

https://stackoverflow.com/a/60288899/7044855

Referrer isn't always set. You can set HTTP headers manually if you're testing using curl/postman/etc, but not if you were testing by simply hitting your script in a browser.

set referrer in postman

Using this key/value combination you should see the following output

<?php

$referer = $_SERVER['HTTP_REFERER'];

echo $referer;
// https://google.com

Source

See also:

  • php สร้าง Google ชีตจากบัญชีบริการ

  • php - Laravel 8.0 Installation Failed

  • javascript - How to include HTML data (tags) as value in "arrayToDataTable" of Google Pie Chart?

  • how to Grouping array in php

  • php - vender folder from my laravel project has more 1k error

© 2021
E-mail: contact@webdevask.com
Back to top