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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -