CodeIgniter Forums
calling the url to prevent - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: calling the url to prevent (/showthread.php?tid=71331)



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.