php - how to let only my server access to a webpage? -


how let server access webpage?

maybe can ip or that:

if(myipserver == visitedip)     return true; return false; 

?

note: server accesses page via cron job.

if($_server['remote_addr'] == 'your server ip') {     return true; } else {     return false; } 

this should magic.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -