php - How to block remote requests -


in our wordpress theme check user license wp_remote_get() request. users reported host didn't allow remote requests. question how can test myself locally development, how can simulate block remote request.

searched lot found nothing works.

i use apache, php , mysql (latest versions)

thanks!

my best try edit hostfile. mac hostfile located @

$ sudo nano /etc/hosts 

and add following line , save.

169.254.1.1  yourdomain.com 

to recreate users problems.


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -