|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
certain telco-only on a certain page
Hi
I would like to ask you guys...i would like to code my wml in such a way that only a certain telco can access this particular wml page on my wapsite. Other users of other telco, when they try to access this page, it will give them a no-entry page. How do i go about coding this page? advice needed, thanks~ |
|
#2
|
||||
|
||||
|
Hiya,
I'd first find out the range of IP addresses used by that telco and then use a scripting language to forbid any other IP addresses from gaining access. Hope this helps
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#3
|
|||
|
|||
|
thanks andymoo
so if i'm able to obtain the range of ips used by this telco, how do i script the page in such a way that i block out other telco users? Is it possible to like script the page in a way such that, if the people from this telco comes to this page, they will be redirected to this page. then when people from other telco comes to this page, they will be redirected to another page that says "sorry, this page is for blah blah blah"? thanks a million for your reply ![]() |
|
#4
|
||||
|
||||
|
Yes it is, but you need access to a server (apache would be good
) and / or serverside scripting such as PHP or ASP etc... what are you hosted on / what are your options?
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#5
|
||||
|
||||
|
Hiya,
if you have a hosting control panel like cpanel or heml you will be able to add the ip addresses to blacklist. Cheers Andy |
|
#6
|
|||
|
|||
|
im on a *nix server...yes php is used...but through the ip blocking on cpanel, wouldnt it be shutting out people from a certain ip to all the pages on the website?
if i were to code it using php, how can i go about doing it? not very good with programming, but perhaps u can guide me along. thanks |
|
#7
|
||||
|
||||
|
if($ip=="xxx.xxx.xxx.xxx"){
echo "There's nothing for you here"; } only for one ip tho...... but you can google for more options and i'm sure jamie will have an answer for you. cheers |
|
#8
|
|||
|
|||
|
Quote:
thanks, looking forward to jamie's reply. cheers~ Is it possible to connect the wml page to a database of ip to do this task? or you have better ideas? |
|
#9
|
||||
|
||||
|
yes you can connect a php script to a database and echo out the contents with the correct mime type and formatting for wml.
hth |
|
#10
|
|||
|
|||
|
i have a .wml but i've editted the content to be in php-only.
how do i code such that the mobile phone can read these php-filled wml files? i've tried adding this into the .htaccess and it didnt work <Files sdfa.wml> ForceType application/x-httpd-php </Files> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > certain telco-only on a certain page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|