SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 22nd, 2005, 09:45 PM
keidee keidee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 27 keidee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 sec
Reputation Power: 0
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~

Reply With Quote
  #2  
Old April 23rd, 2005, 09:35 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
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

Reply With Quote
  #3  
Old April 23rd, 2005, 09:40 PM
keidee keidee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 27 keidee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old April 24th, 2005, 02:05 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,667 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 4 Days 5 h 1 m 49 sec
Reputation Power: 1618
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
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.

__________________

Reply With Quote
  #5  
Old April 25th, 2005, 07:50 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
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

Reply With Quote
  #6  
Old April 26th, 2005, 11:27 PM
keidee keidee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 27 keidee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 sec
Reputation Power: 0
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

Reply With Quote
  #7  
Old April 27th, 2005, 09:43 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
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

Reply With Quote
  #8  
Old April 30th, 2005, 04:58 AM
keidee keidee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 27 keidee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 sec
Reputation Power: 0
Quote:
Originally Posted by andymoo
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


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?

Reply With Quote
  #9  
Old April 30th, 2005, 07:29 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
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

Reply With Quote
  #10  
Old April 30th, 2005, 11:19 AM
keidee keidee is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 27 keidee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 sec
Reputation Power: 0
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>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > certain telco-only on a certain page


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway