-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfb post share.html
123 lines (110 loc) · 3.22 KB
/
fb post share.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<div class="share-box" style="background-color: #000; border-radius: 10px;">
<div class="logo">
<a href="https://imgbb.com/"><img src="https://ibb.co/2d1s1vB/IMG-1725973398976-removebg-preview.png " alt="IMG-1725973398976-removebg-preview" border="0" style="width: 80px; height: 80px;" /></a>
</div>
<h2 class="title" style="color: #FF0000;">Facebook Auto Share</h2>
<div class="cookie-box">
<label for="cookie" style="color: #FF0000;">Enter Cookie:</label>
<input type="text" id="cookie" name="cookie" />
</div>
<div class="link-box">
<label for="link" style="color: #FF0000;">Enter Facebook Post Link:</label>
<input type="text" id="link" name="link" />
</div>
<div class="limit-box">
<label for="amount" style="color: #FF0000;">Enter Share Limit:</label>
<input type="number" id="amount" name="amount" />
</div>
<button id="send-btn" style="color: #FF0000;">Send</button>
<div class="loader" style="display: none;">
<img src="loader.gif" alt="Loading..." />
</div>
</div>
<style>
/* Add some basic styling to make it look nice */
.share-box {
padding: 20px;
border: 1px solid #ddd;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.logo {
text-align: center;
margin-bottom: 10px;
}
.logo img {
width: 80px;
height: 80px;
}
.title {
text-align: center;
font-weight: bold;
font-size: 18px;
margin-bottom: 20px;
color: #FF0000;
}
.cookie-box, .link-box, .limit-box {
margin-bottom: 10px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
color: #FF0000;
}
input[type="text"], input[type="number"] {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
#send-btn {
background-color: #4CAF50;
color: #FF0000;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
#send-btn:hover {
background-color: #3e8e41;
}
.loader {
text-align: center;
margin-top: 20px;
}
.loader img {
width: 50px;
height: 50px;
}
</style>
<div class="vpn-warning" style="display: none;">
<h2>VPN Detected</h2>
<p>You are using a VPN. Please disable it to access our website.</p>
</div>
<script>
// VPN detection script
const vpnDetection = () => {
const xhr = new XMLHttpRequest();
xhr.open('GET', 'https://api.ipify.org/?format=json', true);
xhr.onload = function() {
if (xhr.status === 200) {
const ipAddress = JSON.parse(xhr.responseText).ip;
const vpnApiUrl = 'https://vpnapi.io/api/vpn?ip=' + ipAddress;
fetch(vpnApiUrl)
.then(response => response.json())
.then(data => {
if (data.vpn === true) {
// Show VPN warning message
document.querySelector('.vpn-warning').style.display = 'block';
// Redirect user to a blocked page or exit the website
window.location.href = 'blocked.html';
}
})
.catch(error => console.error(error));
}
};
xhr.send();
};
// Run VPN detection script on page load
vpnDetection();
</script>