mvprules
Joined: 30 May 2005
Posts: 2372
Location: ADULTREiGNMAN Headquarters
|
| Posted: Thu May 31, 2007 6:52 pm Post subject: How to disable referrals for FF and IE |
|
|
I am writing about this because, for a lot of the images I use for my reigns, I use iespana.
It's a great free personal webspace provider, but recently, they are using referrals to "block" the images.
Therefore when you see my Red Light District reign, none of the images show up.
However, you can combat this problem for both FireFox and IE.
FireFox
Select Tools -> Add-Ons and in the addons nemu, select "get extensions".
Look for Web Developer and then download and install it (you will need to restart to start using it).
Then, when you restart FF, Select Tools -> Web Developer -> Disable -> Disable Referrels
DONE!!!
Internet Explorer
Download the Fiddler HTTP Debugging Program from here -> Fiddler2
Open the program and Select Rules -> Customise Rules (this will open a javascript file in Notepad).
Scroll down till you get the OnBeforeRequest function (line 121)
Code: static function OnBeforeRequest(oSession: Session)
{
if ((null != gs_ReplaceToken) && (oSession.url.indexOf(gs_ReplaceToken)>-1)){ // Case sensitive
oSession.url = oSession.url.Replace(gs_ReplaceToken, gs_ReplaceTokenWith);
}
if ((null != gs_OverridenHost) && (oSession.host.toLowerCase() == gs_OverridenHost)){
oSession["x-overridehost"] = gs_OverrideHostWith;
}
if ((null!=bpRequestURI) && oSession.uriContains(bpRequestURI)){
oSession["x-breakrequest"]="uri";
}
if ((null!=bpMethod) && (oSession.oRequest.headers.HTTPMethod == bpMethod)){
oSession["x-breakrequest"]="method";
}
etc...
Then add these lines in the function:
oSession["ui-hide"] = true;
oSession.oRequest.headers.Remove("Referer");
Quote: static function OnBeforeRequest(oSession: Session)
{
oSession["ui-hide"] = true;
oSession.oRequest.headers.Remove("Referer");
if ((null != gs_ReplaceToken) && (oSession.url.indexOf(gs_ReplaceToken)>-1)){ // Case sensitive
oSession.url = oSession.url.Replace(gs_ReplaceToken, gs_ReplaceTokenWith);
}
if ((null != gs_OverridenHost) && (oSession.host.toLowerCase() == gs_OverridenHost)){
oSession["x-overridehost"] = gs_OverrideHostWith;
}
if ((null!=bpRequestURI) && oSession.uriContains(bpRequestURI)){
oSession["x-breakrequest"]="uri";
}
if ((null!=bpMethod) && (oSession.oRequest.headers.HTTPMethod == bpMethod)){
oSession["x-breakrequest"]="method";
}
And you're good to go.
WORD OF WARNING: From my experiences, Fiddler will stop you from logging in (you'll get a "There is a problem with this website's security certificate, which is total bullshit). So you may need to close the program.
There you go. I have gave you all a solution for this problem. So if anyone is going to complain to me saying "I can't view your images" then simply, I'm going to ignore you. |
|