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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -