Help - Search - Members - Calendar
Full Version: Smartsearch modification needed
Get Paid Forum - Get Paid Discussion > Webmaster's Corner > Advertising Section related to Running a website > Script Exchange > For Sale Archive
lachlanm
Anybody got any i can buy or know a good place to get some.. we're looking at getting some country blocking scripts installed at mykeywordsearch so that countries that we dont get paid for cant search

any comments appreciated thanx
nze
Lachlan,contact Ian--he should be able to work something out with u...dont know if there is a script out there that blocks countries tho...(but hey,what do i know?)
lachlanm
QUOTE (nze @ Jan 8 2003, 09:59 PM)
Lachlan,contact Ian--he should be able to work something out with u...dont know if there is a script out there that blocks countries tho...(but hey,what do i know?)

nup therre isnt.. the only script is on paradisehitssearch and that comes with the engine

i contacted ian and he hasnt replied.. though he told me in the last email he cant do anything but could perhaps make one

ive seen another script... it looks wild... and very effective but its very very expensive and i was hoping that there would be perhaps someone else out there that could do it..

thanx 4 ur help nze aa.gif aa.gif
baph0met
that's technically not that easy to make since there's no way to determine accurately the country where an ip is, you can just make approximations.

for ips that resolve to cctld's it's easy, if you have a visitor coming from a .de host you can be sure it's german. what about *aol.com users for example? aol is international...

be reminded that solutions like tracerouting an ip are out of question, you don't want the user to wait 20 seconds before it can be determined whether he can be credited or not...

if you only want to block by cctld it's no biggie, any programmer familiar with the script can do it in one hour or so
DGE1754
QUOTE (baph0met @ Jan 8 2003, 06:42 AM)
that's technically not that easy to make since there's no way to determine accurately the country where an ip is, you can just make approximations.

for ips that resolve to cctld's it's easy, if you have a visitor coming from a .de host you can be sure it's german. what about *aol.com users for example? aol is international...

be reminded that solutions like tracerouting an ip are out of question, you don't want the user to wait 20 seconds before it can be determined whether he can be credited or not...

if you only want to block by cctld it's no biggie, any programmer familiar with the script can do it in one hour or so

I was wondering how they (programmers) did this script. I was thinking it would take a well to "check" each IP and that wouldnt be good. I was thinking it could be done otherwise...but it wouldnt be 100% foolproof...I imagine open proxies just throw a wrench in that as well ah.gif
SupaDupaFly
maybe HTTP_ACCEPT_LANGUAGE ?

Best way is to buy a Geo IP lookup database..
baph0met
QUOTE (SupaDupaFly @ Jan 8 2003, 03:39 PM)
maybe HTTP_ACCEPT_LANGUAGE ?

Best way is to buy a Geo IP lookup database..

this is what my browser sends:
User-Agent: Mozilla/5.0 (Linux; U) Opera 6.0 [en]
Host: www.getpaidforum.com
Accept: text/html, image/png, image/jpeg, image/gif, image/x-xbitmap, */*
Accept-Language: en
Accept-Charset: iso-8859-1;q=1.0, utf-8;q=1.0, utf-16;q=1.0, iso-8859-1;q=0.6, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0

can you tell me where I am, please? ae.gif

what's a Geo IP lookup database?
SupaDupaFly
You are from Germany aa.gif

Well there is no other way.. You have to get those Geo IP database (its a databse of ips which checks the users Country and even city). Example: http://www.location.com.my/products.asp

I "think" there is a free db here http://search.cpan.org/author/TJMATHER/Geo-IP-1.13/ . I've never used such database so dont ask how it works.

It is very hard to make a racist script ai.gif
baph0met
just tested Geo::IP with an ip belonging to a pakistani company that has the server in the USA. The result was Pakistan not USA. My guess is that it returns the owner's country, not the physical location (all AOL ip's are reported as USA)
Ian
I wrote something to do this a couple weeks ago... works great. ;-)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.