I made all my external links go through some url route which handles shortened urls and gets the right url from the database and sends the user to the right place.. Is there any option to remove the http referrer on every request that is sent through this specific route? (in this example domain.com/visit/example_url).
web.php looks like this -
use App\Links;
Route::get('/{language}/visit/{slug}', function($language, $slug) {
$url_record = Links::where('language',$language)->where('slug',$slug)->first();
return redirect($url_record->url);
});
So right before the user is being redirect, i'd like to "nullify" the http referrer.
- And yes, all the requests are being passed through https.