-
Notifications
You must be signed in to change notification settings - Fork 5
/
config-template.php
49 lines (37 loc) · 1.46 KB
/
config-template.php
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
<?php
// all possible options will be stored
$config = array();
// for scripts spread out to multiple servers - on error let's redirect back to main site along with error message
//$config['error_redirect'] = "http://www.google.com/?error={error_type}&message={error_msg}";
// for extra privacy and speed - remove all javascript from pages
$config['remove_script'] = true;
// enable cookie functionality?
$config['enable_cookies'] = true;
/*
0 - urls are not unique - no encryption used apart from base64_encode(url) - very fast
1 - all urls are unique to that session
2 - urls are unique to the ip address that generated that url
*/
$config['unique_urls'] = 0;
// replace the title of every page with this - or false to leave the title alone
$config['replace_title'] = 'PHP-Proxy';
// custom user agent - set it to false or null to use visitor's own user-agent
$config['user_agent'] = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)';
// which ip address to use when making a request?
//$config['ip_addr'] = false;//'';
// "blocked_ip" error will be thrown if any of the ips on this array tries using our proxy
$config['blocked_ips'] = array(
// '67.184.200.251',
// '123.123.123.123'
);
/*
// "blocked_domain" error if user tries accessing any of these domains
$config['blocked_domains'] = array(
'youtube.com',
'facebook.com',
'xvideos.com',
'redtube.com'
);
*/
// UNDER CONSTRUCTION!!!! means nothing at the moment
$config['enable_logging'] = false;