Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

http-referer

Get original URL referer with PHP?

December 27, 2022 by Tarik

Store it either in a cookie (if it’s acceptable for your situation), or in a session variable. session_start(); if ( !isset( $_SESSION[“origURL”] ) ) $_SESSION[“origURL”] = $_SERVER[“HTTP_REFERER”];

Categories php Tags http-referer, php Leave a comment

Getting the HTTP Referrer in ASP.NET

December 23, 2022 by Tarik

You could use the UrlReferrer property of the current request: Request.UrlReferrer This will read the Referer HTTP header from the request which may or may not be supplied by the client (user agent).

Categories c# Tags asp.net, c++, http, http-headers, http-referer Leave a comment

In what cases will HTTP_REFERER be empty

October 20, 2022 by Tarik

It will/may be empty when the enduser entered the site URL in browser address bar itself. visited the site by a browser-maintained bookmark. visited the site as first page in the window/tab. clicked a link in an external application. switched from a https URL to a http URL. switched from a https URL to a … Read more

Categories security Tags cross-domain, http-headers, http-referer, referrer-policy, security Leave a comment
Newer posts
← Previous Page1 Page2

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa