13 replies · 1,248 views · started 15 years ago · 1 min read
TL;DR · summary of 13 replies
kolkatawap wanted to block PC users from viewing his website URL, while only allowing mobile users to access the site.
Anthony suggested adding a function at the top of the index page to redirect PC users to a "NOT WELCOME MESSAGE" and mobile users to their mobile site.
kolkatawap was unsure about where to place the code for notphone.php or if they needed to create a separate .php file, as opposed to including it in main index.php.
metulj stated that blocking PC users from viewing his site is impossible, implying this solution might not work universally.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
How To block pc user to view my site url and view my site Only mobile plz help
Added after 5 minutes:
Plz guide me the easiest way look it http://www.wapday.com this site only visible for mobile user but if u browse it on pc it show open it 4m mobile just i want the same thing for my url
kolkatawap wrote:
How To block pc user to view my site url and view my site Only mobile plz help
Added after 5 minutes:
Plz guide me the easiest way look it http://www.wapday.com this site only visible for mobile user but if u browse it on pc it show open it 4m mobile just i want the same thing for my url
Add this function to the very top of your index page
GYSMS.com Provides FREE International sms Reach over 775 networks in more than 221 countries at no cost to you. and the Good News is we own our SMS Hardware so there is no third party SMS API involved our services are completely Ad supported.....
Thanks but what is there i just copy and paste the code in top of my index page but what is there yoursite.com/notphone.php is it mysiteurl/notphone.php i have to make
Anthony wrote:
Add this function to the very top of your index page
Added after 10 minutes:
Brother My site name is Index of / may i copy your whole code and paste top of my index page or make a file such.php and include function at top of my index page
kolkatawap wrote:
Thanks but what is there i just copy and paste the code in top of my index page but what is there yoursite.com/notphone.php is it mysiteurl/notphone.php i have to make
Added after 10 minutes:
Brother My site name is Index of / may i copy your whole code and paste top of my index page or make a file such.php and include function at top of my index page
GYSMS.com Provides FREE International sms Reach over 775 networks in more than 221 countries at no cost to you. and the Good News is we own our SMS Hardware so there is no third party SMS API involved our services are completely Ad supported.....
kolkatawap wrote:
How To block pc user to view my site url and view my site Only mobile plz help
Added after 5 minutes:
Plz guide me the easiest way look it www.wapday.com this site only visible for mobile user but if u browse it on pc it show open it 4m mobile just i want the same thing for my url
you can't block PC to browse on your site !
simple as that
GYSMS.com Provides FREE International sms Reach over 775 networks in more than 221 countries at no cost to you. and the Good News is we own our SMS Hardware so there is no third party SMS API involved our services are completely Ad supported.....
Brother i couldn't find the way Plz help i have copy and paste all code u mention here in a notphone.php file and place <?php include("notphone.php")/>;in my main index.php- is it such way i need to do or other way
kolkatawap wrote:
Brother i couldn't find the way Plz help i have copy and paste all code u mention here in a notphone.php file and place <?php include("notphone.php")/>;in my main index.php- is it such way i need to do or other way
kolkatawap wrote:
Brother i couldn't find the way Plz help i have copy and paste all code u mention here in a notphone.php file and place <?php include("notphone.php")/>;in my main index.php- is it such way i need to do or other way
bro send me a email so i can do this for you since you are having a hard time understanding my previous post : admin[at]gysms.com
GYSMS.com Provides FREE International sms Reach over 775 networks in more than 221 countries at no cost to you. and the Good News is we own our SMS Hardware so there is no third party SMS API involved our services are completely Ad supported.....
metulj wrote:
you can't block PC to browse on your site !
simple as that
wrong wml can be seen only by phone and opera , operamini there are redirect codes to send mobile browsers into certain page and pc users to send them into another certain page.
Framework wrote:
wrong wml can be seen only by phone and opera , operamini there are redirect codes to send mobile browsers into certain page and pc users to send them into another certain page.
pc users cannot be blocked to view ur site.. it can be still viewed by changing user agent.. simple option is make one page for pc and another for mobile8)