Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-21-2019, 04:15 AM   #1
Brian mike
#Alberta51
 
Brian mike's Avatar
 
Industry Role:
Join Date: Oct 2014
Location: USA Territory (Alberta)
Posts: 8,071
Question about redirect visitors by country?

I have few countries i try to redirect to another offers so i find this website

"Are you looking for code snippet to redirect visitors by country?"
https://www.ip2location.com/free/visitor-redirection

Please note i have not really any knowledge on coding so bare with me
I need to know if using site like this can help us "webmaster with limited knowledge" or if it risky and that will create a backdoor for who ever use those code.

Thanks Grumpy


this is the code generate by this tools to redirect countries

PHP Code:
<?php
require 'IP2Location.php';
 
$loc = new IP2Location('databases/IP-COUNTRY.BIN'IP2Location::FILE_IO);
$record $loc->lookup($_SERVER['REMOTE_ADDR'], IP2Location::ALL);
 
if(
$record == 'CN') {
    
header('HTTP/1.1 301 Moved Permanently');
    
header('Location: https://xxxxxxxxxxxxxx.com/?p=3054&media_type=adult&pi=allsitesunwantedcountry');
    exit;
}
 
if(
$record == 'IN') {
    
header('HTTP/1.1 301 Moved Permanently');
    
header('Location: https://xxxxxxxxxxxxxxxx.com/?p=3054&media_type=adult&pi=allsitesunwantedcountry');
    exit;
}
 
if(
$record == 'RU') {
    
header('HTTP/1.1 301 Moved Permanently');
    
header('Location: https://xxxxxxxxxxxxxxxxx.com/?p=3054&media_type=adult&pi=allsitesunwantedcountry');
    exit;
}
 
if(
$record == 'UA') {
    
header('HTTP/1.1 301 Moved Permanently');
    
header('Location: https://xxxxxxxxxxxxxxxxxx.com/?p=3054&media_type=adult&pi=allsitesunwantedcountry');
    exit;
}
 
?>


I would have to install this IP2Location PHP Module first.

PHP Code:
<?php
require 'IP2Location.php';
 
/*
   Cache whole database into system memory and share among other scripts & websites
   WARNING: Please make sure your system have sufficient RAM to enable this feature
*/
// $db = new \IP2Location\Database('./database/IP-COUNTRY-SAMPLE.BIN', \IP2Location\Database::SHARED_MEMORY);
/*
   Cache the database into memory to accelerate lookup speed
   WARNING: Please make sure your system have sufficient RAM to enable this feature
*/
// $db = new \IP2Location\Database('./database/IP-COUNTRY-SAMPLE.BIN', \IP2Location\Database::MEMORY_CACHE);
 
 
/*
    Default file I/O lookup
*/
$db = new \IP2Location\Database('./database/IP-COUNTRY-SAMPLE.BIN', \IP2Location\Database::FILE_IO);
 
$records $db->lookup('8.8.8.8', \IP2Location\Database::ALL);
 
echo 
'<pre>';
echo 
'IP Number             : ' $records['ipNumber'] . "\n";
echo 
'IP Version            : ' $records['ipVersion'] . "\n";
echo 
'IP Address            : ' $records['ipAddress'] . "\n";
echo 
'Country Code          : ' $records['countryCode'] . "\n";
echo 
'Country Name          : ' $records['countryName'] . "\n";
echo 
'Region Name           : ' $records['regionName'] . "\n";
echo 
'City Name             : ' $records['cityName'] . "\n";
echo 
'Latitude              : ' $records['latitude'] . "\n";
echo 
'Longitude             : ' $records['longitude'] . "\n";
echo 
'Area Code             : ' $records['areaCode'] . "\n";
echo 
'IDD Code              : ' $records['iddCode'] . "\n";
echo 
'Weather Station Code  : ' $records['weatherStationCode'] . "\n";
echo 
'Weather Station Name  : ' $records['weatherStationName'] . "\n";
echo 
'MCC                   : ' $records['mcc'] . "\n";
echo 
'MNC                   : ' $records['mnc'] . "\n";
echo 
'Mobile Carrier        : ' $records['mobileCarrierName'] . "\n";
echo 
'Usage Type            : ' $records['usageType'] . "\n";
echo 
'Elevation             : ' $records['elevation'] . "\n";
echo 
'Net Speed             : ' $records['netSpeed'] . "\n";
echo 
'Time Zone             : ' $records['timeZone'] . "\n";
echo 
'ZIP Code              : ' $records['zipCode'] . "\n";
echo 
'Domain Name           : ' $records['domainName'] . "\n";
echo 
'ISP Name              : ' $records['isp'] . "\n";
echo 
'</pre>';
?>
__________________
Tube - Cam - Escorts - Top List
Menu Tab - Banner - Header Link - Blog Post
DM me
Brian mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2019, 04:29 AM   #2
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Google doesn't like it unless you're redirecting to country specific pages on the same domain. eg: https://apple.com/au or https://adobe.com/jp etc

https://www.searchenginejournal.com/...cation/205996/

YMMV
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2019, 05:31 AM   #3
Brian mike
#Alberta51
 
Brian mike's Avatar
 
Industry Role:
Join Date: Oct 2014
Location: USA Territory (Alberta)
Posts: 8,071
will read that article, Thx

Anybody else Get Ridiculous inflated amount of Traffic from India ?
There is some website i have that are not really active the last little couple months with any update and now India Traffic almost taking over .
__________________
Tube - Cam - Escorts - Top List
Menu Tab - Banner - Header Link - Blog Post
DM me
Brian mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2019, 05:42 AM   #4
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Quote:
Originally Posted by Brian mike View Post
will read that article, Thx

Anybody else Get Ridiculous inflated amount of Traffic from India ?
There is some website i have that are not really active the last little couple months with any update and now India Traffic almost taking over .
How are you seeing that traffic? Google Analytics?

Have you confirmed it's real traffic? ie: visitors entering your site and moving between pages?

If not, could it be fusker type traffic? There's a few very big Indian fusker sites.

If it is real traffic then you need to think about how to convert that traffic from your site rather than redirect it.
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2019, 05:58 AM   #5
Brian mike
#Alberta51
 
Brian mike's Avatar
 
Industry Role:
Join Date: Oct 2014
Location: USA Territory (Alberta)
Posts: 8,071
Quote:
Originally Posted by AdultKing View Post
How are you seeing that traffic? Google Analytics?



Quote:
Originally Posted by AdultKing View Post
Have you confirmed it's real traffic? ie: visitors entering your site and moving between pages?

If not, could it be fusker type traffic? There's a few very big Indian fusker sites.

infected files ? the website below have 5 page we have created HOME - GALLERY - DONATION - BOOK ME - LINK


Quote:
Originally Posted by AdultKing View Post
If it is real traffic then you need to think about how to convert that traffic from your site rather than redirect it.
I have no buyers for that kind of traffic
__________________
Tube - Cam - Escorts - Top List
Menu Tab - Banner - Header Link - Blog Post
DM me
Brian mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2019, 06:06 AM   #6
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Quote:
Originally Posted by Brian mike View Post




infected files ? the website below have 5 page we have created HOME - GALLERY - DONATION - BOOK ME - LINK



I have no buyers for that kind of traffic
Do you have bollywood mp3's on your site, because that looks like what the page traffic is going to.
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2019, 06:09 AM   #7
Brian mike
#Alberta51
 
Brian mike's Avatar
 
Industry Role:
Join Date: Oct 2014
Location: USA Territory (Alberta)
Posts: 8,071
Quote:
Originally Posted by AdultKing View Post
Do you have bollywood mp3's on your site, because that looks like what the page traffic is going to.
nope, 5 page we have created HOME - GALLERY - DONATION - BOOK ME - LINK

So i guess that website is infected ? I did scan with wordfence and all Cleared .
__________________
Tube - Cam - Escorts - Top List
Menu Tab - Banner - Header Link - Blog Post
DM me
Brian mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2019, 06:11 AM   #8
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Quote:
Originally Posted by Brian mike View Post
nope, 5 page we have created HOME - GALLERY - DONATION - BOOK ME - LINK

So i guess that website is infected ?
Look in the top left hand corner of the second image you posted.

There are two directories

/temp/
/bollywood mp3/

There could be more but you've only provided a small amount of information, but it's enough to see that you've likely been hacked and people are downloading what they think are bollywood mp3 files. That would explain the sudden influx of Indian traffic.
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2019, 06:12 AM   #9
Brian mike
#Alberta51
 
Brian mike's Avatar
 
Industry Role:
Join Date: Oct 2014
Location: USA Territory (Alberta)
Posts: 8,071
Quote:
Originally Posted by AdultKing View Post
Look in the top left hand corner of the second image you posted.

There are two directories

/temp/
/bollywood mp3/

There could be more but you've only provided a small amount of information, but it's enough to see that you've likely been hacked and people are downloading what they think are bollywood mp3 files.
Thank you passing this to my server admin to taking care of this
__________________
Tube - Cam - Escorts - Top List
Menu Tab - Banner - Header Link - Blog Post
DM me
Brian mike is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-21-2019, 06:13 AM   #10
AdultKing
Raise Your Weapon
 
AdultKing's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Outback Australia
Posts: 15,601
Quote:
Originally Posted by Brian mike View Post
Thank you passing this to my server admin to taking care of this
No worries, let me know if you need any further help.
AdultKing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
redirect, country, code, visitors, knowledge, limited, site, risky, webmaster, grumpy, pimp, create, backdoor, website, offers, snippet, coding, bare, question, note



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.