Home > Technical & Creative Skills > Programming, Servers & Scripts

Opening a ripped LP locally (3)


02-02-2017 08:34 PM #1 riproarious (AMC Alumnus)
Opening a ripped LP locally

Hey there,

I have a question regarding how to open a ripped LP locally. (On my computer, not geographically)

About 60% of the time after downloading and unzipping, it lets me view the index file locally and I can start working on it.
The other 40% of the time, when I try and open the ripped index file it takes me directly to someones site.


Im hoping someone insightful can give an example of code I can delete to open/view locally?

Thanks!


02-03-2017 04:03 AM #2 erikgyepes (Moderator)

You need to clean the LP.

There is probably a javascript that detects that you are accessing the site from computer (when in reality its intended only for mobile users).

Try to locate conditions that are checking window orientation / size / width / touch gestures.

You can try to locate it also be searching for external URLs ie. "http://", however it might be encoded heavily these days.

After you locate the right code simply comment out that part of the code and try to refresh the LP.


02-13-2017 05:12 PM #3 jessejames (Member)

#protip is to comment out all JS to start with. Identify what each script does, and take it from there. Often you'll see that you can remove 80% of the JS, and it's fine. Unless there's any animation or fancy stuff going on, you'll normally be left with scripts for calling out model names/brand names, and scripts for alerts etc. Any code that's obfuscated or looks odd, or any secondary JS files (local jQuery) are usually there to steal traffic or do shady stuff.


Home > Technical & Creative Skills > Programming, Servers & Scripts