CodeIgniter Forums
calling the url to prevent - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forum-6.html)
+--- Forum: Issues (https://forum.codeigniter.com/forum-19.html)
+--- Thread: calling the url to prevent (/thread-71331.html)



calling the url to prevent - kvanaraj - 08-01-2018

Is there any way to block the URL from Mobile app usingĀ 
CI_User_agent class

public $mobile = ''; or any thing


RE: calling the url to prevent - php_rocs - 08-01-2018

@kvanaraj,

You could just create a method/library that determines whether or not a anonymous user is from a mobile device or desktop and reroute them if necessary.