Skip to content

Instantly share code, notes, and snippets.

@gabrieljmj
Created October 15, 2013 18:41
Show Gist options
  • Save gabrieljmj/6996542 to your computer and use it in GitHub Desktop.
Save gabrieljmj/6996542 to your computer and use it in GitHub Desktop.
Verify if exists an extern request
<?php
if( isset( $_SERVER['HTTP_REFERER'] ) and !stristr( $_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'] ) ){
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment